Skip to content

Commit

Permalink
Create concatenated PEM file for SSL certificate and key
Browse files Browse the repository at this point in the history
  • Loading branch information
slavb18 committed Apr 11, 2024
1 parent a7828cc commit 09f383c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/step-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ SUBSCRIBER=$(echo $TOKEN | step crypto jwt inspect --insecure | jq -r .payload.s
mkdir -p ${STEPCERTPATH}
step ca certificate $SUBSCRIBER ${STEPCERTPATH}/my.crt ${STEPCERTPATH}/my.key --token "$TOKEN"
step certificate inspect ${STEPCERTPATH}/my.crt
cat ${STEPCERTPATH}/my.crt ${STEPCERTPATH}/my.key > ${STEPCERTPATH}/my.pem

CERTIFICATEAUTHORITY_BASE64=$(cat ${HOME}/.step/certs/root_ca.crt | base64 -w0)
CERTIFICATE_BASE64=$(cat ${STEPCERTPATH}/my.crt | base64 -w0)
Expand Down

0 comments on commit 09f383c

Please sign in to comment.