ComposantsComponents › Internet
Donne à Java le truststore du job (les certificats de serveur auxquels il fait confiance) et, au besoin, son keystore (le certificat client qu'il présente), par les propriétés système javax.net.ssl.*. À placer devant les appels HTTPS vers un serveur au certificat autosigné ou signé par une autorité interne, ou qui exige un certificat client. Les propriétés valent pour tout le processus Java du job ; les composants HTTP ne les lisent pas tous au même moment (voir Qui en tient compte).
Gives Java the truststore of the job (the server certificates it trusts) and, if needed, its keystore (the client certificate it presents), through the javax.net.ssl.* system properties. To be placed before the HTTPS calls to a server with a self-signed certificate or one signed by an internal authority, or that requires a client certificate. The properties apply to the whole Java process of the job; the HTTP components do not all read them at the same time (see Who takes it into account).
EntréeInput
Aucune : composant seul dans son sous-job.None: component alone in its subjob.
SortieOutput
Aucune : des propriétés de la JVM.None: properties of the JVM.
Déclencheurs en sortieOutput triggers
On Subjob Ok On Subjob Error On Component Ok On Component Error Run if
Le tSetKeystore s'exécute en premier, avant tout appel HTTPS du job ; placé dans un tPrejob, il précède sûrement tout le reste. The tSetKeystore runs first, before any HTTPS call of the job; placed in a tPrejob, it surely comes before everything else.
keytool -importcert -alias serveur -file server-cert.pem -keystore truststore.jks.Prepare the truststore: a JKS or PKCS12 file that holds the certificate of the server or of its authority, for instance keytool -importcert -alias server -file server-cert.pem -keystore truststore.jks.Les libellés sont ceux de l'onglet Composant ; le nom technique, en gris, est celui du paramètre dans le fichier du job. Le composant n'a pas de paramètres avancés. Labels are those of the Component tab; the technical name, in grey, is the parameter name in the job file. The component has no advanced settings.
| ParamètreSetting | DéfautDefault | VisibleShown | Description |
|---|---|---|---|
| Store : Configurer le TrustStore / Configurer le KeyStore (Authentification client) / Les deuxSet TrustStore / Set KeyStore (Client authentication) / BothSET_TRUSTSTORE, NEED_CLIENT_AUTH, SET_TRUSTSTORE_KEYSTORE | Configurer le TrustStoreSet TrustStore | ToujoursAlways |
Boutons radio. TrustStore : pose le truststore et retire le keystore éventuellement posé avant. KeyStore : pose le keystore et laisse le truststore tel qu'il est (celui de Java, cacerts, si rien d'autre). Les deux : pose les deux.
Radio buttons. TrustStore: sets the truststore and removes the keystore set before, if any. KeyStore: sets the keystore and leaves the truststore as it is (the one of Java, cacerts, if nothing else). Both: sets both.
|
| Type de TrustStoreTrustStore typeTRUSTSTORE_TYPE | JKS | TrustStore ou Les deuxTrustStore or Both |
JKS ou PKCS12, écrit dans javax.net.ssl.trustStoreType. Avec Java 21, un fichier PKCS12 déclaré JKS a aussi été lu.
JKS or PKCS12, written to javax.net.ssl.trustStoreType. With Java 21, a PKCS12 file declared as JKS was read too.
|
| Fichier TrustStoreTrustStore fileSSL_TRUSTSERVER_TRUSTSTORE | "C:/clientTrustStore.trustStore" |
TrustStore ou Les deuxTrustStore or Both |
Chemin du truststore, dans javax.net.ssl.trustStore. Il remplace les autorités de Java (cacerts) : les serveurs signés par une autorité publique ne sont plus reconnus s'il ne la contient pas.
Path of the truststore, in javax.net.ssl.trustStore. It replaces the authorities of Java (cacerts): the servers signed by a public authority are no longer recognized if it does not hold it.
|
| Mot de passe du TrustStoreTrustStore passwordSSL_TRUSTSERVER_PASSWORD | "password" |
TrustStore ou Les deuxTrustStore or Both |
Chiffré dans le fichier du job, écrit en clair dans javax.net.ssl.trustStorePassword.
Encrypted in the job file, written in clear text to javax.net.ssl.trustStorePassword.
|
| Type de KeyStoreKeyStore typeKEYSTORE_TYPE | JKS | KeyStore ou Les deuxKeyStore or Both |
JKS ou PKCS12 (.p12, .pfx), dans javax.net.ssl.keyStoreType.
JKS or PKCS12 (.p12, .pfx), in javax.net.ssl.keyStoreType.
|
| Fichier KeyStore / Mot de passe du KeyStoreKeyStore file / KeyStore passwordSSL_KEYSTORE, SSL_KEYSTORE_PASSWORD | "C:/client.keystore", "password" |
KeyStore ou Les deuxKeyStore or Both |
Magasin qui contient la clé privée et le certificat client, dans javax.net.ssl.keyStore et javax.net.ssl.keyStorePassword. Le même mot de passe sert au magasin et à la clé.
Store that holds the private key and the client certificate, in javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword. The same password serves the store and the key.
|
| Vérifier l'identité du serveurCheck server identityVERIFY_NAME | OuiYes | ToujoursAlways |
Décochée, le composant remplace le vérificateur de nom par défaut de HttpsURLConnection par un vérificateur qui accepte tout. Seul tHttpRequest en dépend ; tREST vérifie toujours le nom, tFileFetch jamais (voir Qui en tient compte).
Unchecked, the component replaces the default name verifier of HttpsURLConnection with a verifier that accepts everything. Only tHttpRequest depends on it; tREST always checks the name, tFileFetch never (see Who takes it into account).
|
| Utiliser SSLContextUse SSLContextUSE_SSLCONTEXT | NonNo | ToujoursAlways | Au lieu des propriétés, construit un contexte SSL (bibliothèque sslcontext-kickstart) et en fait le contexte par défaut de Java. Voir Utiliser SSLContext ; non essayé. Instead of the properties, builds an SSL context (sslcontext-kickstart library) and makes it the default context of Java. See Use SSLContext; not tried. |
Un tSetKeystore suivi d'un tJava qui affiche les six propriétés, mots de passe masqués par le tJava (chemins raccourcis en C:/certs).
A tSetKeystore followed by a tJava that displays the six properties, passwords masked by the tJava (paths shortened to C:/certs).
javax.net.ssl.trustStore = C:/certs/truststore.jks javax.net.ssl.trustStoreType = JKS javax.net.ssl.trustStorePassword = ******** javax.net.ssl.keyStore = null javax.net.ssl.keyStoreType = null javax.net.ssl.keyStorePassword = null
javax.net.ssl.trustStore = C:/certs/truststore.jks javax.net.ssl.trustStoreType = JKS javax.net.ssl.trustStorePassword = ******** javax.net.ssl.keyStore = C:/certs/client-only.p12 javax.net.ssl.keyStoreType = PKCS12 javax.net.ssl.keyStorePassword = ********
Les trois composants HTTP de la famille ont été essayés dans les mêmes jobs. Les propriétés sont communes, mais chacun les lit à sa manière. The three HTTP components of the family were tried in the same jobs. The properties are shared, but each one reads them in its own way.
| ComposantComponent | Truststore et keystoreTruststore and keystore | Nom du certificatCertificate name |
|---|---|---|
| tHttpRequest | Par le contexte SSL par défaut de Java, créé au premier appel HTTPS du processus avec les propriétés de ce moment-là, puis gardé : un tSetKeystore placé après, ou un second tSetKeystore, reste sans effet.Through the default SSL context of Java, created at the first HTTPS call of the process with the properties of that moment, then kept: a tSetKeystore placed after, or a second tSetKeystore, has no effect. | Vérifié, sauf si Vérifier l'identité du serveur est décochéeChecked, unless Check server identity is unchecked |
| tREST | Relues à chaque exécution du composant (fichier, type et mot de passe).Read again at each run of the component (file, type and password). | Toujours vérifiéAlways checked |
| tFileFetch (https) | Relues à chaque exécution du composant.Read again at each run of the component. | Jamais vérifiéNever checked |
D'autres composants qui ouvrent des connexions TLS par Java (bases de données, messagerie, tRESTClient…) peuvent aussi lire ces propriétés ; ils n'ont pas été essayés ici. Other components that open TLS connections through Java (databases, mail, tRESTClient…) may also read these properties; they were not tried here.
Sorties copiées de l'exécution de jobs dans Talaxie (Java 21), contre des serveurs HTTPS d'essai sur 127.0.0.1 au certificat autosigné : un serveur ordinaire (port 54526, certificat au nom de localhost et 127.0.0.1), un serveur qui exige un certificat client (port 54527), un serveur dont le certificat porte un autre nom, wrong.example.com (port 54529). Les mots de passe des magasins d'essai sont fictifs.
Outputs copied from runs of jobs in Talaxie (Java 21), against test HTTPS servers on 127.0.0.1 with a self-signed certificate: an ordinary server (port 54526, certificate in the name of localhost and 127.0.0.1), a server that requires a client certificate (port 54527), a server whose certificate bears another name, wrong.example.com (port 54529). The passwords of the test stores are fictitious.
tHttpRequest et tREST demandent /hello ; tFileFetch (protocole https, Arrêter en cas d'erreur décochée) enregistre /files/report.txt, que tJava_1 affiche ; tJava_2 affiche l'erreur de tREST, qui n'a pas d'option d'arrêt.
tHttpRequest and tREST ask for /hello; tFileFetch (https protocol, Die on error unchecked) saves /files/report.txt, which tJava_1 displays; tJava_2 displays the error of tREST, which has no die option.
Le tSetKeystore remplacé par un tJava qui ne fait qu'écrire une ligne. Les trois composants refusent le certificat autosigné (piles abrégées) : The tSetKeystore replaced with a tJava that only writes a line. The three components reject the self-signed certificate (shortened stacks):
tJava_1: no tSetKeystore (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target There isContinue_tFileFetch_1 an exception on: https://127.0.0.1:54526/files/report.txt javax.net.ssl.SSLHandshakeException: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target … Exception in component tREST_1 (MyJob) javax.net.ssl.SSLHandshakeException: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target … tREST_1 On Component Error: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Configurer le TrustStore, fichier truststore.jks qui contient le certificat du serveur :
Set TrustStore, file truststore.jks that holds the certificate of the server:
Hello from the test server report.txt (35 bytes) Monthly report All systems normal. Hello from the test server ||200
Le même certificat dans un fichier PKCS12, type PKCS12 : même réponse pour tHttpRequest. Le fichier PKCS12 laissé en type JKS a aussi été accepté. The same certificate in a PKCS12 file, PKCS12 type: same response for tHttpRequest. The PKCS12 file left as JKS type was accepted too.
Serveur qui exige un certificat client. Les deux : truststore truststore.jks, keystore client-only.p12 de type PKCS12 (certificat demo-client). Console identique à celle d'à côté ; journal du serveur, en-têtes omis :
Server that requires a client certificate. Both: truststore truststore.jks, keystore client-only.p12 of PKCS12 type (demo-client certificate). Console identical to the one alongside; log of the server, headers left out:
[httpsmutual] GET /hello HTTP/1.1 [httpsmutual] (client certificate: demo-client) [httpsmutual] -> 200 (27 bytes) [httpsmutual] GET /files/report.txt HTTP/1.1 [httpsmutual] (client certificate: demo-client) [httpsmutual] -> 200 (35 bytes) [httpsmutual] GET /hello HTTP/1.1 [httpsmutual] (client certificate: demo-client) [httpsmutual] -> 200 (27 bytes)
Un seul fichier JKS qui contient la clé client et le certificat du serveur peut servir aux deux magasins. A single JKS file that holds the client key and the certificate of the server can serve both stores.
Configurer le TrustStore seulement. Le serveur coupe la poignée de main TLS (peer did not return a certificate dans son journal). tFileFetch et tREST, par leur client HttpClient, réessaient trois fois avant d'abandonner (extrait, les mêmes messages se répètent) :
Set TrustStore only. The server cuts the TLS handshake (peer did not return a certificate in its log). tFileFetch and tREST, through their HttpClient client, retry three times before giving up (excerpt, the same messages repeat):
Error writing to server
nov. 21, 2026 3:53:33 PM org.apache.http.impl.execchain.RetryExec execute
INFOS: I/O exception (java.net.SocketException) caught when processing request to {s}->https://127.0.0.1:54527: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte
nov. 21, 2026 3:53:33 PM org.apache.http.impl.execchain.RetryExec execute
INFOS: Retrying request to {s}->https://127.0.0.1:54527
…
There isContinue_tFileFetch_1 an exception on: https://127.0.0.1:54527/files/report.txt
java.net.SocketException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte
…
tREST_1 On Component Error: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte
Le message de Java vient du système, dans sa langue (Windows en français ici) : il ne dit pas qu'il manquait un certificat client. The message of Java comes from the system, in its language (French Windows here): it does not say that a client certificate was missing.
Serveur au certificat wrong.example.com, appelé sous 127.0.0.1 ; truststore qui contient ce certificat. Vérifier l'identité du serveur cochée (défaut) :
Server with the wrong.example.com certificate, called as 127.0.0.1; truststore that holds this certificate. Check server identity checked (default):
(certificate_unknown) No subject alternative names matching IP address 127.0.0.1 found report.txt (35 bytes) Monthly report All systems normal. Exception in component tREST_1 (MyJob) javax.net.ssl.SSLPeerUnverifiedException: Certificate for <127.0.0.1> doesn't match any of the subject alternative names: [wrong.example.com] … tREST_1 On Component Error: Certificate for <127.0.0.1> doesn't match any of the subject alternative names: [wrong.example.com]
tHttpRequest refuse, tFileFetch accepte sans rien dire, tREST refuse. Case décochée : tHttpRequest refuses, tFileFetch accepts without a word, tREST refuses. Box unchecked:
Hello from the test server report.txt (35 bytes) Monthly report All systems normal. Exception in component tREST_1 (MyJob) javax.net.ssl.SSLPeerUnverifiedException: Certificate for <127.0.0.1> doesn't match any of the subject alternative names: [wrong.example.com] … tREST_1 On Component Error: Certificate for <127.0.0.1> doesn't match any of the subject alternative names: [wrong.example.com]
Seul tHttpRequest change. Le vérificateur qui accepte tout reste installé pour la suite du processus. Only tHttpRequest changes. The verifier that accepts everything stays installed for the rest of the process.
tHttpRequest_1 appelle le serveur HTTPS avant le tSetKeystore et échoue, ce qui est attendu. Mais tHttpRequest_2, placé après, échoue aussi : tHttpRequest_1 calls the HTTPS server before the tSetKeystore and fails, which is expected. But tHttpRequest_2, placed after, fails too:
(certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target report.txt (35 bytes) Monthly report All systems normal. Hello from the test server ||200
tFileFetch et tREST, qui relisent les propriétés, réussissent. De même, deux tSetKeystore successifs (un truststore par serveur) : le second tHttpRequest, vers le serveur wrong.example.com, a gardé le truststore du premier tSetKeystore et refusé le certificat (PKIX path building failed). Pour plusieurs serveurs, mettez tous les certificats dans un seul truststore.
tFileFetch and tREST, which read the properties again, succeed. Likewise, two successive tSetKeystore (one truststore per server): the second tHttpRequest, to the wrong.example.com server, kept the truststore of the first tSetKeystore and rejected the certificate (PKIX path building failed). For several servers, put all the certificates in a single truststore.
Le tSetKeystore ne lit pas les fichiers : il ne fait qu'écrire des propriétés et ne signale jamais d'erreur. Les erreurs arrivent au premier composant HTTPS. Messages relevés : The tSetKeystore does not read the files: it only writes properties and never reports an error. The errors come at the first HTTPS component. Messages seen:
| CasCase | tHttpRequest | tFileFetch, tREST |
|---|---|---|
| Mot de passe du truststore fauxWrong truststore password | java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext) | tFileFetch : java.io.IOException: Keystore was tampered with, or password was incorrect, et le job s'arrête (code 1) même avec Arrêter en cas d'erreur décochée ; tREST n'a pas été atteinttFileFetch: java.io.IOException: Keystore was tampered with, or password was incorrect, and the job stops (code 1) even with Die on error unchecked; tREST was not reached |
| Fichier du truststore introuvableTruststore file not found | PKIX path building failed…, sans mention du fichierPKIX path building failed…, with no mention of the file | Non essayéNot tried |
| Certificat du serveur absent du truststoreServer certificate missing from the truststore | (certificate_unknown) PKIX path building failed: … | javax.net.ssl.SSLHandshakeException: (certificate_unknown) PKIX path building failed: … |
| Certificat client exigé, pas de keystoreClient certificate required, no keystore | Error writing to server | java.net.SocketException: … (message du système), après trois essaisjava.net.SocketException: … (system message), after three tries |
| Certificat à un autre nomCertificate in another name | (certificate_unknown) No subject alternative names matching IP address 127.0.0.1 found | tREST : Certificate for <127.0.0.1> doesn't match any of the subject alternative names: [wrong.example.com] ; tFileFetch : aucune erreurtREST: Certificate for <127.0.0.1> doesn't match any of the subject alternative names: [wrong.example.com]; tFileFetch: no error |
Configurer le KeyStore seul, avec un serveur au certificat autosigné : le truststore reste celui de Java, et tHttpRequest a échoué sur PKIX path building failed avant même de présenter son certificat.
Set KeyStore alone, with a server with a self-signed certificate: the truststore stays the one of Java, and tHttpRequest failed on PKIX path building failed before even presenting its certificate.
Lu dans le modèle du composant (sslcontext.javajet), sans essai. Option cochée, le composant ne pose aucune propriété. Il construit un contexte SSL avec la bibliothèque sslcontext-kickstart : les autorités de Java et du système, plus le truststore et le keystore donnés. Il en fait le contexte par défaut de Java (SSLContext.setDefault) et la fabrique de sockets par défaut de HttpsURLConnection.
Read in the template of the component (sslcontext.javajet), with no run. With the option checked, the component sets no property. It builds an SSL context with the sslcontext-kickstart library: the authorities of Java and of the system, plus the given truststore and keystore. It makes it the default context of Java (SSLContext.setDefault) and the default socket factory of HttpsURLConnection.
Le constructeur est gardé d'un tSetKeystore à l'autre : chaque tSetKeystore de ce mode ajoute ses magasins à ceux des précédents, au lieu de les remplacer. D'après le modèle, c'est le mode qui convient à plusieurs serveurs et à un tSetKeystore placé après un premier appel ; tREST et tFileFetch, qui construisent leur propre contexte à partir des propriétés, ne le verraient pas. The builder is kept from one tSetKeystore to the next: each tSetKeystore of this mode adds its stores to those of the previous ones, instead of replacing them. According to the template, this is the mode that suits several servers and a tSetKeystore placed after a first call; tREST and tFileFetch, which build their own context from the properties, would not see it.
Le premier appel HTTPS du processus fige le contexte SSL de Java : tSetKeystore après coup, ou un second tSetKeystore, ne changent rien pour tHttpRequest. Placez un seul tSetKeystore dans un tPrejob, avec un truststore qui contient tous les certificats utiles.The first HTTPS call of the process freezes the SSL context of Java: a tSetKeystore afterwards, or a second tSetKeystore, changes nothing for tHttpRequest. Place a single tSetKeystore in a tPrejob, with a truststore that holds all the useful certificates.
Avec un truststore qui ne contient que le certificat d'un serveur interne, les appels HTTPS vers des sites signés par une autorité publique échouent ensuite (PKIX path building failed). Ajoutez au besoin ces autorités au fichier (keytool -importkeystore depuis cacerts).With a truststore that only holds the certificate of an internal server, the HTTPS calls to sites signed by a public authority fail afterwards (PKIX path building failed). Add these authorities to the file if needed (keytool -importkeystore from cacerts).
tREST vérifie toujours le nom du certificat ; tFileFetch ne le vérifie jamais, même case cochée. Décochée, la case vaut pour tous les appels HttpsURLConnection qui suivent dans le processus.tREST always checks the name of the certificate; tFileFetch never checks it, even with the box checked. Unchecked, the box applies to all the HttpsURLConnection calls that follow in the process.
Les deux mots de passe sont écrits déchiffrés dans les propriétés de la JVM, lisibles par tout le code du job. Passez-les par des variables de contexte chargées au lancement (tContextLoad).Both passwords are written decrypted to the properties of the JVM, readable by all the code of the job. Pass them through context variables loaded at start (tContextLoad).
Chemin faux, mot de passe faux : le tSetKeystore réussit toujours. L'erreur vient plus loin, souvent sans nommer le fichier. Vérifiez le magasin avec keytool -list -keystore … avant d'incriminer le serveur.Wrong path, wrong password: the tSetKeystore always succeeds. The error comes later, often without naming the file. Check the store with keytool -list -keystore … before blaming the server.
Les propriétés javax.net.ssl.* sont celles de la JVM : elles valent pour tout ce qui s'exécute ensuite dans le même processus Java, et le mode Configurer le TrustStore retire un keystore posé avant par un autre composant.The javax.net.ssl.* properties are those of the JVM: they apply to everything that runs afterwards in the same Java process, and the Set TrustStore mode removes a keystore set before by another component.
tHttpRequest · appel HTTP ou HTTPSHTTP or HTTPS calltREST · appel RESTREST calltFileFetch · téléchargement d'un fichierdownload of a filetSetProxy · proxy du jobproxy of the jobtPrejob · poser les magasins avant tout le resteset the stores before everything elsetFTPConnection · FTPS, avec son propre magasin de clésFTPS, with its own key store