------=_NextPart_000_0024_01C1D5E4.2CCA4DC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
If anyone could help me it would be well appreciated. I am trying to =
extract the Common Name and the dNSName from a certificate. I was =
attempting this using the X509_get_ext_d2i(x, NID_commonName or =
NID_subject_alt_name, NULL, NULL);. I can't seem to get it working.
Thanks
Shane Titus
EBS/EBS net Inc.
978.448.9340/6376 (phone/fax)
http://www.ebsnetinc.com
mailto:sh...@ebsnetinc.com
--
Check out our new web browser/html viewer technology.
Download a win9x version from: http://www.ebsnetinc.com/browser.html
------=_NextPart_000_0024_01C1D5E4.2CCA4DC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Courier New" size=3D2>If anyone could help me it =
would be well=20
appreciated. I am trying to extract the Common Name and the =
dNSName from a=20
certificate. I was attempting this using the X509_get_ext_d2i(x,=20
NID_commonName or NID_subject_alt_name, NULL, NULL);. I can't seem =
to get=20
it working.</FONT><FONT face=3D"Courier New" size=3D2></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Thanks</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Shane Titus<BR>EBS/EBS net=20
Inc.<BR>978.448.9340/6376 (phone/fax)<BR><A=20
href=3D"http://www.ebsnetinc.com">http://www.ebsnetinc.com</A><BR><A=20
href=3D"mailto:sh...@ebsnetinc.com">mailto:sh...@ebsnetinc.com</A></FONT>=
</DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>--<BR>Check out our new web =
browser/html=20
viewer technology.<BR>Download a win9x version from: <A=20
href=3D"http://www.ebsnetinc.com/browser.html">http://www.ebsnetinc.com/b=
rowser.html</A></FONT></DIV></BODY></HTML>
------=_NextPart_000_0024_01C1D5E4.2CCA4DC0--
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org
X509* pCert;
char buf[256];
int x = X509_NAME_get_text_by_NID(
X509_get_subject_name(pCert),
NID_commonName, buf, 256);
The return value seems to be the number of characters written to the buffer.
I'd also be interested if anyone has a code sample for extracting the
dNSName from the subjectAltName extension of a certificate.
Daryl Odnert
daryl....@tumbleweed.com
-----Original Message-----
From: Shane Titus [mailto:sh...@ebsnetinc.com]
Sent: Wednesday, March 27, 2002 8:08 PM
To: openss...@openssl.org
Subject: extract CN and dNSName
If anyone could help me it would be well appreciated. I am trying to
extract the Common Name and the dNSName from a certificate. I was
attempting this using the X509_get_ext_d2i(x, NID_commonName or
NID_subject_alt_name, NULL, NULL);. I can't seem to get it working.
Thanks
Shane Titus
EBS/EBS net Inc.
978.448.9340/6376 (phone/fax)
http://www.ebsnetinc.com
mailto:sh...@ebsnetinc.com
--
Check out our new web browser/html viewer technology.
Download a win9x version from: http://www.ebsnetinc.com/browser.html
______________________________________________________________________