大网数据广告活动
Web服务器与PHP

Errors occur when you install a certificate

· 52CE 我爱测

This article describes the problem where you receive an error message when you try to install a certificate by using IIS Manager, and provides a resolution.

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

Symptoms

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.
    0x8009310b (ASN:276)

Note: The certificate is installed correctly despite the error message.

Cause

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.

Resolution

To resolve this problem, add a friendly name to the certificate. Follow these steps to resolve this problem:

  1. Select Start, select Run, enter MMC, and then select OK.
  2. Select File, select Add/Remove Snap-ins.
  3. Select Certificates, select Add >.
  4. Select Computer account, and select Next, and then select Finish.
  5. Select OK.
  6. Expand Certificates (Local Computer), and Personal, and then Certificates.
  7. Right-click the certificate, and then select Properties.
  8. Edit the Friendly name field, and then select OK.

More information

This issue is scheduled to be resolved in Windows Server 2008 Service Pack 3.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 03/31/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。