Import SSL Zertifikat mit java keytool

keytool -import -alias myalias -file certs/mycert-pub.pem -keystore sender-certs.jks

 

keytool -importkeystore -destkeystore receiver-certs.jks -srckeystore mycert.p12 -srcstoretype  PKCS12 -alias 1

keytool -changealias -keystore receiver-certs.jks -alias 1 -destalias myalias

 

 

 

keytool -importkeystore -destkeystore server-ssl-cert.jks -srckeystore mycert.p12 -srcstoretype  PKCS12 -alias 1

keytool -changealias -keystore server-ssl-cert.jks -alias 1 -destalias myalias