Skip to content

Instantly share code, notes, and snippets.

@MunyaradziMudukuti
Forked from csamsel/convert-ssl.sh
Created May 5, 2022 05:31
Show Gist options
  • Save MunyaradziMudukuti/86990d098ee3a2f815efefb28fff9818 to your computer and use it in GitHub Desktop.
Save MunyaradziMudukuti/86990d098ee3a2f815efefb28fff9818 to your computer and use it in GitHub Desktop.
convert ssl certificates from pem to crt/key
openssl rsa -outform der -in privkey.pem -out privkey.key
openssl x509 -outform der -in fullchain.pem -out fullchain.crt
openssl x509 -outform der -in cert.pem -out cert.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment