Git Product home page Git Product logo

Comments (3)

pkgw avatar pkgw commented on May 12, 2024 1

Following up ... after a lot of back-and-forth with Microsoft support, I think that we've identified the cause of the problem I had. I'm posting it here for posterity.

The issue was that the way that I was using the UI to select the KeyVault certificate, the App Gateway was specifically selecting the current active version of the SSL certificate, not the ongoing series of certificates. In particular, the "KeyVault secret id" that was getting stored was something of the form:

https://{vaultname}.vault.azure.net/secrets/{certname}/{version-hexdigest}

To get the cert to auto-renew, the version hexdigest needs to be removed, for a secret ID of:

https://{vaultname}.vault.azure.net/secrets/{certname}/

As of now (July 2020), it doesn't seem possible to configure this in the Azure Portal UI, but I think it can be done using the az CLI program using a preview-status command-line argument:

az network application-gateway ssl-cert update \
  -g $resource_group_name \
  --gateway-name $gateway_name \
  -n $gw_cert_name \
  --key-vault-secret-id https://${vault_name}.vault.azure.net/secrets/${vault_cert_name}/

It'll be another month since my cert auto-renews and I can confirm that this solution works, but I'm pretty confident this will have solved my problem.

from keyvault-acmebot.

shibayan avatar shibayan commented on May 12, 2024

No. According to the Application Gateway documentation, when a Key Vault certificate is renewed, it will automatically renew within 24 hours.

The instances also poll Key Vault at 24-hour intervals to retrieve a renewed version of the certificate, if it exists. If an updated certificate is found, the SSL certificate currently associated with the HTTPS listener is automatically rotated.
https://docs.microsoft.com/en-us/azure/application-gateway/key-vault-certs

If your Key Vault certificate has been renewed, but App Gateway certificate has not been automatically renewed, you may want to contact Azure support.

from keyvault-acmebot.

pkgw avatar pkgw commented on May 12, 2024

Thanks for the prompt response. I'll close this issue since my problem doesn't look like something that keyvault-acmebot is responsible for.

from keyvault-acmebot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.