Java Zertifikate Importieren: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 13: Zeile 13:
java SSLPoke finanzonline.bmf.gv.at 443
java SSLPoke finanzonline.bmf.gv.at 443
</pre>
</pre>
=== Links ===
[https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html]


== Import ==
== Import ==
Zeile 24: Zeile 28:
</pre>
</pre>


== Links ==
=== Links ===


[https://confluence.atlassian.com/kb/connecting-to-ssl-services-802171215.html https://confluence.atlassian.com/kb/connecting-to-ssl-services-802171215.html]
[https://confluence.atlassian.com/kb/connecting-to-ssl-services-802171215.html https://confluence.atlassian.com/kb/connecting-to-ssl-services-802171215.html]
[https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html]




Zurück zu [[Java#Zertifikate importieren|Java]]
Zurück zu [[Java#Zertifikate importieren|Java]]

Version vom 2. Juli 2018, 16:26 Uhr

Noch in Bearbeitung


Allgemein

Folgender Text beschreibt, wie man ein Server-Zertifikat in Java zu den vertrauenswürdigen Zertifikaten hinzufügt.

Testen

SSLPoke runterladen und folgendes Kommando starten:

java SSLPoke finanzonline.bmf.gv.at 443

Links

https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html

Import

openssl s_client -connect finanzonline.bmf.gv.at:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > public.crt
keytool -import -alias finanzonline.bmf.gv.at -keystore /usr/lib64/jvm/jre-1.6.0-sun/lib/security/cacerts -file public.crt

Links

https://confluence.atlassian.com/kb/connecting-to-ssl-services-802171215.html


Zurück zu Java