try hack with rg query
This commit is contained in:
Родитель
f90e67e15a
Коммит
135e1297df
|
@ -115,8 +115,9 @@ jobs:
|
|||
- name: "Cert Generation"
|
||||
id: cert
|
||||
run: |
|
||||
export DOMAIN_NAME_AKS_BASELINE="contoso.com"
|
||||
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 DOMAIN_NAME_AKS_BASELINE=${{ inputs.DOMAIN }}
|
||||
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:
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче