Hi

I have a certificate with a crlDistributionPoint extension. Using OpenSSL
terms, the extension consists of two DIST_POINT*.....one of the type
GEN_DIRNAME and the other of the type GEN_URI.
In my code I have "parsed" these DIST_POINT* and what I end up with is a
GENERAL_NAME* for each distribution point.
To get a readable text, I do a i2d_GENERAL_NAME().
For the GEN_URI this gives me a string including 2 header bytes.
For the GEN_DIRNAME this gives me a string where I can see the right
information is there, but there it is also stuffed with a lot of
non-readable bytes.

But what I really want is a readable text only, like the one you get when
OpenSSL dumps information about an X.509 certificate:

  DirName:/C=DK/O=xxx Internet/OU=xxx Class II CA/CN=MainCRL
  URI:http://xxxx.xxxx.dk/Class_II.crl

How can I parse the crlDistributionPoint to get these two texts returned:
/C=DK/O=xxx Internet/OU=xxx Class II CA/CN=MainCRL
http://xxxx.xxxx.dk/Class_II.crl

TIA,

Kim Hellan
KMD / KMD-CA
http://www.kmd-ca.dk
Mailto:[EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to