az network application-gateway ssl-cert -- Is there any option to view the expiry of SSL cert
See original GitHub issueIs your feature request related to a problem? Please describe.
az network application-gateway ssl-cert
is used to manage the SSL certificates of an application gateway. However, I am not able to find any option to view the expiry date of the certificate. Getting to know the expiry date is essential at times and would be a helpful feature to have. Is there any way to view the expiry of the SSL certificate of an application gateway.
Describe the solution you’d like Having an option to view the expiry date of an SSL certificate of an application gateway would be very helpful. If there is already a way to do it, adding an example in the cli and docs would be very helpful.
Describe alternatives you’ve considered Tried the following command but did not find any good way to extract the SSL certificate expiry
(Note that argument values have been redacted, as they may contain sensitive information.)
az network application-gateway ssl-cert show -g test-rg --gateway-name test-aag --name test.example.com
{ "data": null, "etag": "W/\"136379e-3fcca\"", "id": "/subscriptions/zbca-fa02b/resourceGroups/test-rg/providers/Microsoft.Network/applicationGateways/test-aag/sslCertificates/test.example.com", "keyVaultSecretId": null, "name": "test.example.com", "password": null, "provisioningState": "Succeeded", "publicCertData": "QMVPYn209pT/4k2IBDL1AB0z1WJH7Jioqeu72l/XLJpUlTYZ90le68xxM727Cz2GKpXyak1f19+4oK52is7td59BS60sF+O0dUKtaaS8hE26NXeVVY+1pOjyid70irCMeJda5JPrTKjEA", "resourceGroup": "test-rg", "type": "Microsoft.Network/applicationGateways/sslCertificates" }
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (8 by maintainers)
Top GitHub Comments
@MyronFanQiu : Discussed this with Akshay Gupta from the service team. He has confirmed that the command takes a
pfx
file as input which ispkcs12
and show/list shows only the public part of the cert whichpkcs7
.I will create a PR to add a good example to the help section and documentation to demonstrate this behavior so that it is of help for everyone. Will let you know once I do it.
@MyronFanQiu : Did you get any update from the service team on this