Skip to content

Instantly share code, notes, and snippets.

@zeqk
Forked from thomaslarsen/README.md
Created June 10, 2021 20:02
Show Gist options
  • Save zeqk/defb1188b5d2a11a7014836a6793cf96 to your computer and use it in GitHub Desktop.
Save zeqk/defb1188b5d2a11a7014836a6793cf96 to your computer and use it in GitHub Desktop.
Convert PEM certificate to JSON format
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' cert-name.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment