Skip to content

Instantly share code, notes, and snippets.

@shelld0n
Last active February 5, 2019 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shelld0n/cd9838ce773982a70a8ef4a4072f8d32 to your computer and use it in GitHub Desktop.
Save shelld0n/cd9838ce773982a70a8ef4a4072f8d32 to your computer and use it in GitHub Desktop.
REadme.md
Extraire la chaine de certification client du p12
openssl pkcs12 -in -cacerts -nokeys -chain -out
Extraire le certificat client
openssl pkcs12 -in -clcerts -nokeys -out
Extraire lma clée privée chiffrée du client
openssl pkcs12 -in yourP12File.pfx -nocerts -out privateKey.pem
Importer le certificat PEM dans le truststore des brokers kafka (Un Ajout pour chaque certificat dans la chaine)
openssl x509 -outform der -in test.cer -out certificate.der
keytool -import -alias your-alias -keystore cacerts -file certificate.der
Check a certificate
openssl x509 -in certificate.crt -text -noout
Check a PKCS#12 file (.pfx or .p12)
openssl pkcs12 -info -in keyStore.p12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment