Errors when you try to install a certificate by using IIS 7.0 Manager
This article helps you resolve the problem where an unexpected runtime error may be thrown when you try to install a certificate by using Microsoft Internet Information Services (IIS) 7.0 Manager
Original product version: Windows Server 2008 Service Pack 2, Internet Information Services 7.0
Original KB number: 959216
When you try to install a certificate from a
PKCS#7 file by using IIS 7.0 Manager, you may receive one of the following error messages:
Error message 1
Cannot find the certificate request associated with this certificate file. A certificate request must be completed on the computer where it was created.
Error message 2
There was an error while performing this operation
Details: CertEnroll::CX509Enrollment::p_InstallResponse: ASN1 bad tag value met.
The certificate is installed correctly despite the error message.
This issue occurs because IIS Manager performs a lookup operation to look for a friendly name of the certificate during the installation. However, the code that performs this lookup operation misses this specific case, and it doesn't know how to retrieve the friendly name of a certificate in a
PKCS#7 file. That's why the lookup operation fails, and you receive the error message.
To resolve this problem, add a friendly name to the certificate. Follow these steps to resolve this problem:
- Select Start, select Run, type certmgr.mmc, and then select OK.
- Select File, select Add/Remove Span-ins.
- Select Certificates, and select Add, and then select OK.
- Select Computer account, and select Next, and then select Finish.
- Select OK.
- Expand Certificates (Local Computer), and Personal, and then Certificates.
- Right-click the certificate, and then select Properties.
- Edit the Friendly name field.
This issue is scheduled to be resolved in Windows Server 2008 Service Pack 3.