[prev in list] [next in list] [prev in thread] [next in thread]
List: openssl-dev
Subject: Getting DN from x509 Certificate
From: "Maya" <maya () philcrypt ! co ! kr>
Date: 2002-02-22 14:26:46
[Download RAW message or body]
Hello!
I have a question.
I have certificate request generated by new Java keytool, which can assign UTF8 \
strings as DN. I have signed it with openssl x509 tool version 0.9.6a. As a result \
the certificate is properly displayed under Win 2000. When I try to extract the DN \
from the certificate I get:
/C=KR
/O=\xED\x95\x84\xED\x81\xAC\xEB\xA6\xBD
/CN=\xEB\xA7\x88\xEC\x95\xBC \xEC\x9D\xBC\xEB\xA6\xAC\xEC\x97\x90\xEB\xB0\x94
It should be equal to
/C=KR
/O=ÇÊÅ©¸³
/CN=¸¶¾ß Àϸ®¿¡¹Ù
or ¸¶ should be = \xEB\xA7\x88 .
This is strange because I think "¸¶ " has to encoded with 2 bytes, but....
My problem is that I cannot convert " \xEB\xA7\x88" to "¸¶"
If somebody can tell me what exactly is the relation between the string which I get \
from openssl tool and the real name, please do it!!!
Thanks
Maya Ilieva
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=ks_c_5601-1987" http-equiv=Content-Type>
<META content="MSHTML 5.00.3502.4373" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2> </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>Hello!</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2> </DIV>
<DIV><FONT face=Arial size=2>I have a question.</FONT></DIV>
<DIV><FONT face=Arial size=2>I have certificate request generated by new Java
keytool, which can assign UTF8 strings as DN. I have signed it with openssl x509
tool version 0.9.6a. As a result the certificate is properly displayed
</FONT><FONT face=Arial size=2>under Win 2000.</FONT></DIV>
<DIV><FONT face=Arial size=2>When I try to extract the DN from the certificate I
get:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>/C=KR</FONT></DIV>
<DIV><FONT face=Arial
size=2>/O=\xED\x95\x84\xED\x81\xAC\xEB\xA6\xBD</FONT></DIV>
<DIV><FONT face=Arial size=2>/CN=\xEB\xA7\x88\xEC\x95\xBC
\xEC\x9D\xBC\xEB\xA6\xAC\xEC\x97\x90\xEB\xB0\x94</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>It should be equal to </FONT></DIV>
<DIV><FONT face=Arial size=2>/C=KR</FONT></DIV>
<DIV><FONT face=Arial size=2>/O=ÇÊÅ©¸³</FONT></DIV>
<DIV><FONT face=Arial size=2>/CN=¸¶¾ß Àϸ®¿¡¹Ù</FONT></DIV>
<DIV> </DIV>
<DIV>or ¸¶ should be = \xEB\xA7\x88 .</DIV>
<DIV> </DIV>
<DIV>This is strange because I think "¸¶ " has to encoded with 2
bytes, but....</DIV>
<DIV>My problem is that I cannot convert " \xEB\xA7\x88" to "¸¶"</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>If somebody can tell me what exactly is the relation between the string
which I get from openssl tool and the real name, please do it!!!</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>Maya Ilieva</DIV>
<DIV> </DIV></FONT></FONT></BODY></HTML>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic