dcsimg
X509Certificate subject name encoding
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, April 13, 2004 05:57 AM

Hello all, I have an web application that conect with https and request a client certification. i get the client certificate from the request: X509Certificate[] certs = (X509Certificate[])request.getAttribute("javax.servlet.request.X509Certificate"); X509Certificate cert = certs[0]; String dn = cert.getSubjectDN().getName(); this string is wrong: "CÚsar Fernßndez" i want the string that appears in the Internet Explorer is: "César Fernández" i intent: byte[] value = dn.getBytes(); String dnS = new String(value, "ISO-8859-1"); bu   More>>

Hello all,

I have an web application that conect with https and request a client certification.
i get the client certificate from the request:



			
X509Certificate[] certs = (X509Certificate[])request.getAttribute("javax.servlet.request.X509Certificate");
X509Certificate cert = certs[0];
String dn = cert.getSubjectDN().getName();



this string is wrong: "CÚsar Fernßndez"


i want the string that appears in the Internet Explorer is: "César Fernández"

i intent:

			
byte[] value = dn.getBytes();
String dnS = new String(value, "ISO-8859-1");



but it don't works, returns the same.


thanks in advance,
César.

   <<Less
About | Sitemap | Contact