[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce] untrusted server cert chain



Hi everyone,


I have an  "untrusted server cert chain" when I use the following code:
System.getProperties().put("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
URL url = new URL("https://www.usps.gov");
HttpsURLConnection h = (HttpsURLConnection)url.openConnection()
InputStream in = (InputStream)url.getContent();

Can anyone help me?

Gr.


Rajesh
begin:vcard 
n:Lachman;Rajesh
tel;fax:+31 70 374 0651
tel;work:+31 70 374 0856
x-mozilla-html:FALSE
url:http://www.tno.nl
org:TNO-FEL;Security
version:2.1
email;internet:lachman@fel.tno.nl
title:R & D
adr;quoted-printable:;;Oude Waalsdorperweg 63=0D=0A;The Hague;;2509 JG;The Netherlands
fn:ir. R. Lachman
end:vcard