Skip to content

Instantly share code, notes, and snippets.

@ojacques
Created July 22, 2021 11:31
Show Gist options
  • Save ojacques/86cb2f4209d138bce5ac5fd50ea0bd66 to your computer and use it in GitHub Desktop.
Save ojacques/86cb2f4209d138bce5ac5fd50ea0bd66 to your computer and use it in GitHub Desktop.
Encode GitHub App key PEM for Kubernetes use
This CLI will convert a PEM private key from a GitHub app, so that it can be used in Jenkins, to eventually be injected in K8s values file
```
sed ':a;N;$!ba;s/\n/\\\\\\\\n/g' certificate.private-key.pem
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment