My client have passed the Certificates to me, then I use
CertCreateCertificateContext function get a PCCERT_CONTEXT. My
question is How do i get the CA signature of this Certificates?
I need to use the CA public-key to check this CA signature, I have get
the public-key from the CA root Certificate. Thanks!
If you want to verify the signature of a certificate using the public key of
the CA, I advise you to use the function CryptVerifyCertificateSignature. It
only needs the encoded bytes of the certificate and a structure containing
the CA public key.
Here is the link to its documentation :
http://msdn2.microsoft.com/en-us/library/aa380912(VS.85).aspx .
Cheers,
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr
Mounir, could you please check the last post of "M_P" in the thread
"smart card and crypt API CryptSignHash throws ...".
it looks like, the axalto CSP fails to process signature with his
scenarion. could you advice an a different way to test signature
computation using another API set -- I'm not fluent enough with
CSP to be sure of how to manage such tests.
cheers,
Sylvain.
Thanks, but my question is how to get the CA signature of the
Certificates.
Actually, getting the certificate signature is easy : it's stored in the
last bytes of the certificate encoding. So, for instance, if the bit length
of the CA RSA key pair is 1024, then the last 128 bytes of the certificate
are its CA signature.
Sorry if in my first post I didn't answer your question directly.
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr
"usr....@gmail.com" wrote:
> On , Mounir IDRASSI <mooni...@newsgroups.nospam> wrote:
> > Hi,
> >
> > If you want to verify the signature of a certificate using the public key of
> > the CA, I advise you to use the function CryptVerifyCertificateSignature. It
> > only needs the encoded bytes of the certificate and a structure containing
> > the CA public key.
> > Here is the link to its documentation :http://msdn2.microsoft.com/en-us/library/aa380912(VS.85).aspx.
> >
> > Cheers,
> > --
> > Mounir IDRASSI
> > IDRIXhttp://www.idrix.fr
> >
> >
> >
> > "usr.r...@gmail.com" wrote:
> > > Hi All,
> >
> > > My client have passed the Certificates to me, then I use
> > > CertCreateCertificateContext function get a PCCERT_CONTEXT. My
> > > question is How do i get the CA signature of this Certificates?
> > > I need to use the CA public-key to check this CA signature, I have get
> > > the public-key from the CA root Certificate. Thanks!-
>