Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save un4ckn0wl3z/07b7405e2a0c43df1e7983c96ad60a92 to your computer and use it in GitHub Desktop.
Save un4ckn0wl3z/07b7405e2a0c43df1e7983c96ad60a92 to your computer and use it in GitHub Desktop.
Convert Certificates ( .pem, / .crt / etc ) into single-line strings for JSON payloads
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