Dear all:

I need to interpret a .pem file (such as the attached
ICE-root.pem sample file) and convert it into a
readable format like the following (for the purpose of
a certificate verification):

     Certificate:
       Data:
            Version: 3 (0x2)
            Serial Number: 0 (0x0)
            Signature Algorithm: md5WithRSAEncrytion
            Issuer: O=European ICE-TEL project ...
            ...
 
I've been poking around the openssl v0.9.4 srouce file
for two weeks, and could not get a program working
correctly. Can any of you help me:

- point me to a right source files, such as
     crypto/evp/encode.c ?
     crypto/asn1/*
     ...
 
  a simple sample code is ver much appreciated.
  (i've decoded the .pem from the base64 into
   hex binary.)

- What does the file demos/maurice/example4.c
  really do ?   It seems a good *small*
  sample file, but it does not seem to convert
  a .pem or a hex file into a readable format.

- where can i find a description of the format
  of a certificate in a .pem file ?
  Does it start with an envelope or does
  it start with an X.509 cert info ?

- Where can I get the spec of X.509 of a certificate ?

Thank you in advance for help.

/yy



Attachment: ICE-root.pem
##############################

-----BEGIN CERTIFICATE-----
MIICFjCCAcCgAwIBAgIBADANBgkqhkiG9w0BAQQFADBIMSEwHwYDVQQKExhFdXJv
cGVhbiBJQ0UtVEVMIHByb2plY3QxIzAhBgNVBAsTGlYzLUNlcnRpZmljYXRpb24g
QXV0aG9yaXR5MB4XDTk3MDQwMjE3MzMzNloXDTk4MDQwMjE3MzMzNlowSDEhMB8G
A1UEChMYRXVyb3BlYW4gSUNFLVRFTCBwcm9qZWN0MSMwIQYDVQQLExpWMy1DZXJ0
aWZpY2F0aW9uIEF1dGhvcml0eTBZMAoGBFUIAQECAgIAA0sAMEgCQQCAPuuuR6n+
EFQLgYucK4KrOmE2ZYvzc5+srHoVpxOPtMS6ow+8pViNzLGTMZ6BnowZYYb6UnNU
0Zd2IufHn0HNAgMBAAGjgZcwgZQwHQYDVR0OBBYEFIr3yNUOx3ro1yJw4AuJ1bbs
ZbzPMA4GA1UdDwEB/wQEAwIB9jBSBgNVHREESzBJhipodHRwOi8vd3d3LmRhcm1z
dGFkdC5nbWQuZGUvaWNlLXRlbC9ldXJvY2GBG2ljZS10ZWwtY2FAZGFybXN0YWR0
LmdtZC5kZTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBBAUAA0EAdmlh27fP
iwae2IyWU9JNqCOmA0TojySlwISoS3fULSt9N5Fn8izOAjFMa8zO8mimERGrfYi4
fiKfJQZgvXkwPQ==
-----END CERTIFICATE-----








__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to