Modify Certificate to include SAN

amanjot singh 1 Reputation point
2022-05-16T11:04:51.367+00:00

Hi
I have a certificate in Azure Key Vault. Currently it dont have the SAN.Is it possible to modify the certificate and include the SAN without creating a new version.

Thanks

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,135 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 10,981 Reputation points MVP
    2022-05-16T19:44:46+00:00

    Hello @amanjot singh

    Unfortunately it is not possible to modify an existing certificate without invalidating the signature.

    With an invalid signature the certificate will be considered invalid and rejected by the browser.
    If editing a certificate would be possible and the edited certificate accepted by the browser: in this case an attacker could easily modify an existing certificate for its own domain to include any other domain for which he wants to do a man in the middle attack.
    https://stackoverflow.com/questions/42417010/how-can-we-add-san-to-an-existing-pcks-12

    So, if you want to "modify" a certificate, then you actually need to obtain a new certificate, with new contents. It is not possible to upgrade any other SSL certificate type to SAN.
    In order to add SANs to a certificate, you must generate a new Certificate Signing Request (CSR) specifying the correct common name, then reissue SSL certificate from one of the SSL providers.
    https://www.namecheap.com/support/knowledgebase/article.aspx/9282/2221/can-i-add-another-domain-later-after-the-ssl-certificate-has-been-issued-and-activated/
    https://support.globalsign.com/ssl/general-ssl/change-certificate-details-after-issuance

    If you think your question has been answered, click "Mark as Answer" if just helped click "Vote as helpful". This can be beneficial to other community members reading this forum thread.

    1 person found this answer helpful.