The SSL certificate is expired. on Azure VM

Freedman, Mike 0 Reputation points
2023-08-15T00:52:39.49+00:00

When deploying from an Azure DevOps Pipeline to an Azure Virtual Machine I get the following error.

Logging into my Azure Virtual Machine, I can see that my SSL Certificate is expired. What process can I go through in the Azure Portal to renew the certificates? All documentation says to use Azure Key Vault but I do not have an Azure Key Vault set up. I would have thought there would be a simple way to manage SSL Certificates within an Azure VM.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,035 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dr. S. Gomathi 710 Reputation points MVP
    2023-08-15T04:34:19.03+00:00

    Hi Michael,

    Renewing SSL certificates is essential for maintaining a secure connection.

    While Azure Key Vault is a recommended method for managing certificates, if you don't have it set up, you can follow these simplified steps to renew your SSL certificate directly within the Azure Portal:

    Obtain a New Certificate: Generate a new SSL certificate using tools like OpenSSL or from a trusted certificate authority.

    Upload the Certificate: Log in to the Azure Portal and go to your Virtual Machine settings. Look for SSL certificate management options and upload the new certificate there.

    Configure SSL Binding: Set up SSL binding by specifying the new certificate for your application or services on the VM.

    Update DevOps Pipeline: Modify your Azure DevOps Pipeline to utilize the new certificate during deployment. Adjust deployment scripts or configurations as needed.

    While managing SSL certificates within an Azure VM can seem straightforward, Azure Key Vault offers enhanced security and convenience. If you find these steps too intricate, consider implementing Azure Key Vault for future certificate management to streamline the process.

    Hope this helps.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.