Created
June 15, 2022 10:44
-
-
Save mbaykara/a58176c4715f38b1ecd08ce6ec702171 to your computer and use it in GitHub Desktop.
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
| #!/bin/env bash | |
| #credit to https://adolfi.dev/blog/tls-kubernetes/ | |
| openssl pkcs12 -in pfx-filename.pfx -nocerts -out key-filename.key | |
| openssl rsa -in key-filename.key -out key-filename-decrypted.key | |
| openssl pkcs12 -in pfx-filename.pfx -nokeys -out crt-filename.crt | |
| kubectl create secret tls tls-secret --cert crt-filename.crt --key key-filename-decrypted.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment