Trouble shooting windows certificate problems.

A simple way to to enable CAPI2 LOG at eventvwr -> applications and services log -> microsoft -> windows -> CAPI2 ->  operational.

Such like this, I encounter this problem, obviously it's a certificate issue, UnsupportedCryptographicSetException, who TMD knows what you(WIN8) are supporting and what features you have cut. 

While I'm boring with this, I found this article and enabled CAPI2 logs, then the original problem was exposed, so I can fix it right now.


Error:

========

Results : Checking Exchange Server ...

              - PASS: Exchange Server is running in Enterprise.
          Loading IRM configuration ...
              - PASS: IRM configuration loaded successfully.
          Retrieving RMS Certification Uri ...
              - PASS: RMS Certification Uri: https://exhv-1107/_wmcs/certification.
          Verifying RMS version for https://exhv-1107/_wmcs/certification ...
              - PASS: RMS Version verified successfully.
          Retrieving RMS Publishing Uri ...
              - PASS: RMS Publishing Uri: https://exhv-1107dom.extest.microsoft.com/_wmcs/licensing.
          Acquiring Rights Account Certificate (RAC) and Client Licensor Certificate (CLC) ...
              - WARNING: Failed to acquire a Rights Account Certificate (RAC) and/or a Client Licensor Certificate
          (CLC). This failure may cause features such as Transport Decryption, Transport Protection Rules, Journal
          Report Decryption, IRM in Outlook Web App, IRM in Exchange ActiveSync, and IRM Search to not work. Make sure
          that the Exchange Servers Group is granted "Read" and "Read & Execute" rights on the
          ServerCertification.asmx and Publish.asmx pipelines on your AD RMS server. For details, see "Set Permissions
          on the AD RMS Certification Pipeline" at  http://go.microsoft.com/fwlink/?LinkId=186951.
          ----------------------------------------
          Microsoft.Exchange.Security.RightsManagement.RightsManagementException: Failed to acquire server box RAC
          from https://exhv-1107/_wmcs/certification/servercertification.asmx. --->
          System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Exception of type
          'System.Web.Services.Protocols.SoapException' was thrown. --->
          Microsoft.DigitalRightsManagement.Cryptography.UnsupportedCryptographicSetException: Exception of type
          'Microsoft.DigitalRightsManagement.Cryptography.UnsupportedCryptographicSetException' was thrown.
             --- End of inner exception stack trace ---
             at Microsoft.DigitalRightsManagement.Certification.BaseCertificationWebService.Certify(CAType caType,
          CertifyParams requestParameters)
             at Microsoft.DigitalRightsManagement.Certification.ServerCertificationWebService.Certify(CertifyParams
          requestParams)
             at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message,
          WebResponse response, Stream responseStream, Boolean asyncCall)
             at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
             at Microsoft.Exchange.Net.WsAsyncProxyWrapper.EndInvoke(IAsyncResult result)
             at Microsoft.Exchange.Security.RightsManagement.SOAP.ServerCertification.ServerCertificationWS.EndCertify(
          IAsyncResult asyncResult)
             at Microsoft.Exchange.Security.RightsManagement.ServerCertificationWSManager.EndAcquireRac(IAsyncResult
          asyncResult)
             --- End of inner exception stack trace ---
             at Microsoft.Exchange.Data.Storage.RightsManagement.RmsClientManager.EndAcquireInternalOrganizationRACAndC
          LC(IAsyncResult asyncResult) in
          \\EXSRC\SOURCES\ALL\14.03.0082.000\sources\dev\data\src\storage\rightsmanagement\RmsClientManager.cs:line
          2896
             at
          Microsoft.Exchange.Data.Storage.RightsManagement.RmsClientManager.EndAcquireTenantLicenses(IAsyncResult
          asyncResult) in
          \\EXSRC\SOURCES\ALL\14.03.0082.000\sources\dev\data\src\storage\rightsmanagement\RmsClientManager.cs:line
          1007
             at Microsoft.Exchange.Data.Storage.RightsManagement.RmsClientManager.AcquireTenantLicenses(RmsClientManage
          rContext context, Uri licenseUri) in
          \\EXSRC\SOURCES\ALL\14.03.0082.000\sources\dev\data\src\storage\rightsmanagement\RmsClientManager.cs:line 964
             at Microsoft.Exchange.Management.RightsManagement.IRMConfigurationValidator.TryGetRacAndClc() in \\EXSRC\S
          OURCES\ALL\14.03.0082.000\sources\dev\Management\src\Management\rms\IRMConfigurationValidator.cs:line 355
          ----------------------------------------


          OVERALL RESULT: PASS with warnings on disabled features



EventLog:
=============

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Windows-CAPI2" Guid="{5bbca4a8-b209-48dc-a8c7-b23d3e5216fb}" /> 
  <EventID>30</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>30</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x4000000000000001</Keywords> 
  <TimeCreated SystemTime="2012-08-20T05:12:59.990288400Z" /> 
  <EventRecordID>441</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="7608" ThreadID="2920" /> 
  <Channel>Microsoft-Windows-CAPI2/Operational</Channel> 
  <Computer>EXHV-1107.EXHV-1107dom.extest.microsoft.com</Computer> 
  <Security UserID="S-1-5-18" /> 
  </System>
- <UserData>
- <CertVerifyCertificateChainPolicy>
  <Policy type="CERT_CHAIN_POLICY_SSL" constant="4" /> 
  <Certificate fileRef="3131F84A08AE532FCFEFBD897DE256D741A9B4FE.cer" subjectName="EXHV-1107" /> 
  <CertificateChain chainRef="{62CD22FC-52E2-4318-A559-B956636D3922}" /> 
  <Flags value="0" /> 
- <SSLAdditionalPolicyInfo authType="server" serverName="exhv-1107dom.extest.microsoft.com">
  <IgnoreFlags value="0" /> 
  </SSLAdditionalPolicyInfo>
  <Status chainIndex="0" elementIndex="0" /> 
  <EventAuxInfo ProcessName="w3wp.exe" /> 
  <CorrelationAuxInfo TaskId="{69EA1F92-583C-4101-8C71-95FD2A22F8BD}" SeqNumber="1" /> 
  <Result value="800B010F">The certificate's CN name does not match the passed value.</Result> 
  </CertVerifyCertificateChainPolicy>
  </UserData>
  </Event>


How to troubleshoot Certificate Enrollment in the MMC Certificate Snap-in

http://blogs.technet.com/b/askds/archive/2007/11/06/how-to-troubleshoot-certificate-enrollment-in-the-mmc-certificate-snap-in.aspx

### CCS 安装错误:临时目录路径包含 Unicode 字符的解决方法 当安装 Code Composer Studio (CCS) 时,如果遇到 `temp directory path contains Unicode characters` 的错误提示,则表明当前系统的管理员账户名称或临时文件夹路径中包含了非 ASCII 字符(通常是中文或其他特殊字符)。这种情况下,可能会导致安装程序无法正常运行并引发错误。 以下是具体的解决方案: #### 修改 Windows 用户账户名称 由于该问题是由于 Windows 系统中的管理员账户名称包含非 ASCII 字符引起的,因此可以通过修改用户账户名称来解决问题。具体操作如下: 1. 打开 **Windows 设置** 并进入 **账户设置** 页面。 2. 在左侧菜单中选择 **家庭和其他用户** 或者 **其他用户** 部分。 3. 添加一个新的用户账户,并将其权限更改为 **管理员角色**[^3]。 4. 新建的用户名应完全由英文字母组成,避免任何特殊字符或汉字。 #### 切换至新的管理员账户 完成上述步骤后,需注销当前账户并登录到新创建的管理员账户下。在此环境下重新启动 CCS 安装过程,此时应该不会再出现关于 Unicode 字符的相关警告。 另外需要注意的是,在某些特定场景下除了调整用户账户外还需要手动指定系统环境变量 TEMP 和 TMP 的值指向不含 Unicode 编码的新位置。例如可设为 C:\Temp 这样的纯英文简单路径[^1]。 对于源路径同样存在非ASCII编码的情况也适用相似处理方式即更改其为仅含标准美式键盘输入符号构成的新地址以规避潜在冲突风险[^2]。 ```python import os # Example of setting environment variables programmatically in Python, not directly related to solving this issue but demonstrates conceptually how paths could be altered. os.environ['TEMP'] = r'C:\Temp' os.environ['TMP'] = r'C:\Temp' ``` 以上措施能够有效防止因路径中含有复杂字符集而导致的各种兼容性问题发生从而顺利完成Code Composer Studio软件包部署工作流程。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值