Hi,

have you already succeeded to extract public key from x509 certificate? I
have just a similar problem. Please could you show me a piece of code with
your solution? Thanks in advace.

Krivak




ngn wrote:
> 
> in  program -
> 
>   BERGeneralDecoder context(tbsCert,0x02); // consume the context tag on
> the version
>          
>         word32 ver;
>      
>  BERDecodeUnsigned<word32>(context,ver,BOOLEAN,0,2); // only want a v1
> cert         
>        
> but i am not able to understand in BERGeneralDecoder 's constructor
> (context) 's second argument i.e. asnTag what it tells.
> and what is value of asnTag  for version 1 . i know for version 3 is 0xa0.
> 
> in BERDecodeUnsigned 's constructor what should i pass in 3rd ,4th ,5th
> argument  for  x509 version 1 .and what are the significance of these
> argument .
> please reply as soon as possible.
> 

-- 
View this message in context: 
http://old.nabble.com/RGD%3Ahow-to-extract-public-key-from-x509-certificate--version-1-tp33774365p33969404.html
Sent from the Crypto++ Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to