skip to Main Content

Let’s Encrypt unable to install certificate (0x80070520)

When installing the Let’s Encrypt certificate an error is showing, Let’s Encrypt unable to install certificate. Let’s encrypt error (COMException) Unable to install certificate: A specified logon session does not exist. It may already have been terminated. (0x80070520). After the error, the Let’s Encrypt certificate is not installed. In this article, you will learn why this is happening and the solution for Let’s Encrypt unable to install certificate (0x80070520).

Let’s Encrypt unable to install the certificate

The Automatic Certificate Management Environment (ACME) protocol is a communications protocol for automating interactions between certificate authorities and their users’ web servers, allowing the automated deployment of public key infrastructure at a very low cost. It was designed by the Internet Security Research Group (ISRG) for their Let’s Encrypt service.

Run Let’s Encrypt Win-ACME client and install the certificate on the system. In my example, it’s the Exchange Server. Read the article Install FREE Let’s Encrypt certificate in Exchange Server. In the last step, it’s going to install the Let’s Encrypt certificate.

Let’s Encrypt is installing, and the output is giving us the following error:

(COMException) Unable to install certificate: A specified logon session does not exist. It may already have been terminated. (0x80070520)

Solution for unable to install the certificate Let’s Encrypt

If you previously did run the Win-ACME client, a certificate is already downloaded on the system. We have to delete the files on the system to prevent the error from showing. Log into the system that is showing the error when installing the Let’s Encrypt certificate. The folder ProgramData is hidden. If you like to see the folder in File Explorer, make sure to enable hidden items.

Delete files in Certificates folder

Start File Explorer and go to the following path:

Delete all the files in the Certificates folder.

Lets Encrypt unable to install certificate (0x80070520) certificates folder

Delete files in Orders folder

In File Explorer go to the following path:

Delete all the files in the Orders folder.

Lets Encrypt unable to install certificate (0x80070520 orders folder

Run Win-ACME client

Run Win-ACME client on the system. Follow the wizard to install Let’s Encrypt certificate in Exchange Server.

This time the error did not show up. Let’s Encrypt certificate is installed successfully. Did it work for you?

Keep on reading: Export Let’s Encrypt certificate in Windows Server »

Conclusion

In this article, you learned why Let’s Encrypt is unable to install certificate (0x80070520). Go to the specified folders and delete the files. Run the Let’s Encrypt Win-ACME client and follow the wizard to install the Let’s Encrypt certificate.

Did you enjoy this article? You may also like New-MailboxExportRequest is not recognized in Exchange Server. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top