Created
May 16, 2020 01:30
-
-
Save ricardomaia/fea87439ff212ac224c5b8be29abd23c to your computer and use it in GitHub Desktop.
openssl p7s Let's Encrypt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ openssl smime -sign -in file.txt -inkey /etc/letsencrypt/live/example.com/privkey.pem -outform PEM -signer /etc/letsencrypt/live/example.com/cert.pem -CAfile /etc/letsencrypt/live/example.com/fullchain.pem -out file.txt.p7s | |
$ openssl pkcs7 -print_certs -in file.txt.p7s -out file.txt.p7s.cer | |
$ openssl smime -verify -inform PEM -in file.txt.p7s -content file.txt -certfile file.txt.p7s.cer -CAfile /etc/letsencrypt/live/example.com/fullchain.pem -nointern -noverify > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment