Skip to content

Instantly share code, notes, and snippets.

@tdantas
Created July 26, 2013 17:07
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 tdantas/6090524 to your computer and use it in GitHub Desktop.
Save tdantas/6090524 to your computer and use it in GitHub Desktop.
Openssl recipes pkcs7 to x509

#HTTPS SSL Apache

We received 2 files.

  • PKCS7
  • Intermediate.crt

###How to extract X.509 from PKCS7 ?

openssl pkcs7 -print_certs -in mysslcertificate_PKCS7.p7c

This command will output 3 parts.

  • The first output will be your certificate.
  • The lasts 2 the intermediate certificate authorite.

How to verify my certificate ?

openssl verify -CAfile intermediateca.crt certificate.crt
@tdantas
Copy link
Author

tdantas commented Aug 2, 2013

Connect
$ openssl s_client -connect

@tdantas
Copy link
Author

tdantas commented Sep 16, 2013

Enable apache module $ sudo a2enmod ssl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment