jueves, 10 de octubre de 2019

How to save a remote server SSL certificate locally as a file?

I found this answer following answer on StackExcahnge and it works perfect.
Enjoy!

"A quick method to get the certificate pulled and downloaded would be to run the following command which pipes the output from the -showcerts to the x509 ssl command which just strips everything extraneous off."

For example:
openssl s_client -showcerts -connect target-url </dev/null 2>/dev/null|openssl x509 -outform PEM >certfile.pem
Reference:  https://superuser.com/questions/97201/how-to-save-a-remote-server-ssl-certificate-locally-as-a-file

No hay comentarios:

Publicar un comentario

How to save a remote server SSL certificate locally as a file?

I found this answer following answer on StackExcahnge and it works perfect. Enjoy! "A quick method to get the certificate pulled and...