This file contains 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/sh | |
# $1: certificate name on AWS | |
# $2: certificate file (crt) | |
# $3: private key file (pem) | |
# $4: DigicertCA2 path | |
# $5: TrustedRoot path | |
# Download certificates on Digicert (Other formats > Individual crt files with a .cer extension) | |
# Generate intermediate cert for AWS (not an option, many browsers requires it it). Intermediate is concatenation of CA and Root certs | |
(openssl x509 -inform PEM -in $4; openssl x509 -inform PEM -in $5) > Intermediate.cer |