This commit is contained in:
Carmody Quinn 2022-08-25 20:27:44 -05:00
Родитель f90e67e15a
Коммит 135e1297df
1 изменённых файлов: 3 добавлений и 2 удалений

5
.github/workflows/IaC-bicep-AKS.yml поставляемый
Просмотреть файл

@ -115,8 +115,9 @@ jobs:
- name: "Cert Generation" - name: "Cert Generation"
id: cert id: cert
run: | run: |
export DOMAIN_NAME_AKS_BASELINE="contoso.com" export DOMAIN_NAME_AKS_BASELINE=${{ inputs.DOMAIN }}
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -out appgw.crt -keyout appgw.key -subj "/CN=bicycle.${DOMAIN_NAME_AKS_BASELINE}/O=Contoso Bicycle" -addext "subjectAltName = DNS:bicycle.${DOMAIN_NAME_AKS_BASELINE}" -addext "keyUsage = digitalSignature" -addext "extendedKeyUsage = serverAuth" export CN=${{ inputs.CN }}
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -out appgw.crt -keyout appgw.key -subj "/CN=${CN}.${DOMAIN_NAME_AKS_BASELINE}/O=Contoso Bicycle" -addext "subjectAltName = DNS:${CN}.${DOMAIN_NAME_AKS_BASELINE}" -addext "keyUsage = digitalSignature" -addext "extendedKeyUsage = serverAuth"
openssl pkcs12 -export -out appgw.pfx -in appgw.crt -inkey appgw.key -passout pass: openssl pkcs12 -export -out appgw.pfx -in appgw.crt -inkey appgw.key -passout pass:
export APP_GATEWAY_LISTENER_CERTIFICATE_AKS_BASELINE=$(cat appgw.pfx | base64 | tr -d '\n') export APP_GATEWAY_LISTENER_CERTIFICATE_AKS_BASELINE=$(cat appgw.pfx | base64 | tr -d '\n')
echo APP_GATEWAY_LISTENER_CERTIFICATE: $APP_GATEWAY_LISTENER_CERTIFICATE_AKS_BASELINE echo APP_GATEWAY_LISTENER_CERTIFICATE: $APP_GATEWAY_LISTENER_CERTIFICATE_AKS_BASELINE