M
miiiiichal
Hi all,
I have to generate certificate request using CertEnroll on my Vista.
It must be generated on the web page. To do this I use Javascript. I
crteate X509EnrollmentWebClassFactory object (the basic one) and other
objects with web enabled tag. My code works fine when I want to
generate the request using for example 'Microsoft Strong Cryptographic
Provider'. The problem appears when I use my token CSP -
'Charismathics Smart Security Interface CSP' (drivers You can download
form www.charismathics.com).
In this situation function CreateRequest() start working and throw na
error:
---------------------------
Windows Internet Explorer
---------------------------
Error: CertEnroll::CX509Enrollment:Stick out tongue_CreateRequest:
ASN1 - unexpected end of data. 0x80093102 (ASN: 258)
---------------------------
OK
---------------------------
Token works OK with Windows XP and mozilla and its behavior look fine
on vista (before an error apprears the private and public keys are
stored in token's memory).
Does anybody have similar problem with tokens?
Could you help me with this one??
Maybe I'm not set all privateKey Attributs or something like this?
Any suggestions?
This is my code my shows the problem:
generate cert req.
thanks in advance,
miiiiichal
I have to generate certificate request using CertEnroll on my Vista.
It must be generated on the web page. To do this I use Javascript. I
crteate X509EnrollmentWebClassFactory object (the basic one) and other
objects with web enabled tag. My code works fine when I want to
generate the request using for example 'Microsoft Strong Cryptographic
Provider'. The problem appears when I use my token CSP -
'Charismathics Smart Security Interface CSP' (drivers You can download
form www.charismathics.com).
In this situation function CreateRequest() start working and throw na
error:
---------------------------
Windows Internet Explorer
---------------------------
Error: CertEnroll::CX509Enrollment:Stick out tongue_CreateRequest:
ASN1 - unexpected end of data. 0x80093102 (ASN: 258)
---------------------------
OK
---------------------------
Token works OK with Windows XP and mozilla and its behavior look fine
on vista (before an error apprears the private and public keys are
stored in token's memory).
Does anybody have similar problem with tokens?
Could you help me with this one??
Maybe I'm not set all privateKey Attributs or something like this?
Any suggestions?
This is my code my shows the problem:
generate cert req.
thanks in advance,
miiiiichal