Created
June 6, 2017 13:16
-
-
Save greyltc/adc3b1cea9adf9142bc71f3c9d9c991d to your computer and use it in GitHub Desktop.
make a certificate archive for plex media server from let's encript provided files
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
#!/usr/bin/env bash | |
# example usage: ./mkcert.sh plex.domain.com | |
DOMAIN_NAME=$1 | |
openssl pkcs12 -export -in /etc/letsencrypt/live/$DOMAIN_NAME/fullchain.pem -inkey /etc/letsencrypt/live/$DOMAIN_NAME/privkey.pem -out /var/lib/plex/archive.pfx -name "$DOMAIN_NAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment