Proxy Zertifikat ermitteln

Aus GTDS
Version vom 3. September 2020, 14:34 Uhr von Ilia (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<source lang="java"> keytool -J-Dhttps.proxyHost=<proxy_hostname> -J-Dhttps.proxyPort=<proxy_port> -printcert -rfc -sslserver <remote_host_name:remote_ssl_port…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen
keytool -J-Dhttps.proxyHost=<proxy_hostname> -J-Dhttps.proxyPort=<proxy_port> -printcert -rfc -sslserver <remote_host_name:remote_ssl_port>

You should see at least two entries printed by the above command. Take the last certificate content printed and copy it entirely to your clipboard. This should be your proxy server's certificate, added to the end of the certificate chain.

The copied certificate content should start with -----BEGIN CERTIFICATE----- and end with-----END CERTIFICATE-----

Navigate to ../jre/bin and run the below command

..\..\bin/keytool.exe -keystore cacerts -importcert -alias proxy -file <path_to_file\proxy.cer..>

Enter keystore password:

5.) Type the password for the keystore at the “Password” prompt and press Enter. The default Java password for the cacerts file is “changeit”.

6.) Type ‘y’ at the “Trust this certificate?” prompt and press Enter.