csp在win7下高级证书申请出错
公司的csp在xp下是可以成功在网页上申请证书的。但到了win7下申请的时候却出了点问题。我看了下日志,应该是win7下的CertEnrollCtrl这程序出现了变化,所以我们的csp在实现上可能由于某些功能没有实现而产生的错误。但是具体到底哪个有问题还是没法得知。下面我贴出csp的日志,希望有经验的大大给点意见,这里先谢谢了。
测试使用的是微软的CA服务器,使用的是证书申请中的高级申请。
cps.log 部分log
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CSP(77): CPAcquireContext, dwFlags: f0000000
CONT(78): CPAcquireContext - Kingtrust Container, dwFlags: f0000000
CSP(79): CPkContext::CPkContext() - index:4, hProv:f54288
CSP(80): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_VERSION, dwFlags:0
CSP(81): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_IMPTYPE, dwFlags:0
CSP(82): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_KEYSPEC, dwFlags:0
CSP(83): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_USE_HARDWARE_RNG, dwFlags:0
ERROR(84): CSP11_EXCEPT: 0x8009000a, line:929, Files: ..\..\..\..\..\src\ktcsp11\csp\Context.cpp
CSP(85): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMCONTAINERS, dwFlags:1
CSP(86): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMALGS_EX, dwFlags:1
CSP(87): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMALGS_EX, dwFlags:0
CSP(88): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMALGS_EX, dwFlags:0
CSP(89): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMALGS_EX, dwFlags:0
CSP(90): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMALGS_EX, dwFlags:0
CSP(91): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMALGS_EX, dwFlags:0
CSP(92): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMALGS_EX, dwFlags:0
CSP(93): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMALGS_EX, dwFlags:0
CSP(94): CPGetProvParam, HCRYPTPROV:f54288, dwParam:PP_ENUMALGS_EX, dwFlags:0
ERROR(95): CSP11_EXCEPT: 0x103, line:812, Files: ..\..\..\..\..\src\ktcsp11\csp\Context.cpp
CONT(96): CPReleaseContext - Kingtrust Container
CSP(97): CPReleaseContext -- OK
CSP(98): CPAcquireContext, dwFlags: 00000008
CONT(99): CPAcquireContext - le-2980fbc4-1cfe-4211-9b68-12c794f6f8e0, dwFlags: 8
CSP(100): CPkSlot::CreateTokenCont: le-2980fbc4-1cfe-4211-9b68-12c794f6f8e0
CSP(101): CPkContext::CPkContext() - index:5, hProv:f58d80
CONT(102): CPAcquireContext - le-2980fbc4-1cfe-4211-9b68-12c794f6f8e0, OK
KEY(103): CPGenKey, Algid:1 , dwFlag:4000002
CSP(104): CPkContext::GenRsaKey, Algid:1
CSP(105): CPkKeyBase::CPkKeyBase() - index:6, hKey:f58eb0
CSP(106): CPkKeyRsa::CPkKeyRsa() - index:6, hKey:f58eb0
CSP(107): CPkSlot::CreateExchKey: le-2980fbc4-1cfe-4211-9b68-12c794f6f8e0
CSP(108): CPkSlot::CreateExchKey: le-2980fbc4-1cfe-4211-9b68-12c794f6f8e0 ... OK
CSP(109): CPkContext::GenRsaKey, Algid:1 ... OK
KEY(110): CPGenKey, return: True
CSP(111): CPGetKeyParam, HCRYPTKEY:f58eb0, dwParam:9, dwFlag:0
KEY(112): CPkKeyRsa::GetKeyParam
CSP(113): CPGetKeyParam, HCRYPTKEY:f58eb0, dwParam:6, dwFlag:0
KEY(114): CPkKeyRsa::GetKeyParam
CSP(115): CPGetProvParam, HCRYPTPROV:f58d80, dwParam:PP_KEYSTORAGE, dwFlags:0
ERROR(116): CSP11_EXCEPT: 0x8009000a, line:929, Files: ..\..\..\..\..\src\ktcsp11\csp\Context.cpp
CSP(117): CPGetProvParam, HCRYPTPROV:f58d80, dwParam:PP_CONTAINER, dwFlags:0
CSP(118): CPGetProvParam, HCRYPTPROV:f58d80, dwParam:PP_CONTAINER, dwFlags:0
CSP(119): CPGetProvParam, HCRYPTPROV:f58d80, dwParam:PP_UNIQUE_CONTAINER, dwFlags:0
CSP(120): CPGetProvParam, HCRYPTPROV:f58d80, dwParam:PP_UNIQUE_CONTAINER, dwFlags:0
CSP(121): CPGetProvParam, HCRYPTPROV:f58d80, dwParam:PP_KEYSET_SEC_DESCR, dwFlags:4
ERROR(122): CSP11_EXCEPT: 0x80004001, line:923, Files: ..\..\..\..\..\src\ktcsp11\csp\Context.cpp
CSP(123): CPDestroyKey, hKey: 00f58eb0
CSP(124): CPkKeyBase::CPkKeyBase() - index:7, hKey:f592d0
CSP(125): CPkKeyRsa::CPkKeyRsa() - index:7, hKey:f592d0
CSP(126): CPkKeyRsa::~CPkKeyRsa() - index:6, hKey:f58eb0
CSP(127): CPkKeyBase::~CPkKeyBase() - index:6, hKey:f58eb0
CONT(128): CPReleaseContext - le-2980fbc4-1cfe-4211-9b68-12c794f6f8e0
CSP(129): CPReleaseContext -- OK
CSP(130): CPAcquireContext, dwFlags: 00000010
CONT(131): CPAcquireContext - le-2980fbc4-1cfe-4211-9b68-12c794f6f8e0, dwFlags: 10
页面上的出错code 0x80004001
[解决办法]
结贴了。。后来去msdn上提问,没想到ms那边的技术支持还回答了我。。从此对ms有所改观。。赞。。
有同样问题的可以参见 http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/7219ea49-092b-4fc8-9f75-d070be3eb80d
[解决办法]
话说谁来回下帖我给结个贴。。呵呵。。免费送分哦