You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Michael Clovis <mc...@mindbridge.com> on 2005/08/17 19:29:56 UTC

SSL using Example on Website

Trying to understand bigger SSL issues and copied (verbatim) test code from website see below with wire output and stacktrace.. I obviously don't understand something.. Any insight would be appreciated.


 BasicConfigurator.configure();
 HttpClient httpclient = new HttpClient();
 GetMethod httpget = new GetMethod("https://www.verisign.com/");
 try {
 try {
 httpclient.executeMethod(httpget);
 } catch (IOException e) {
 e.printStackTrace();

 }
 System.out.println(httpget.getStatusLine());
 } finally {
 httpget.releaseConnection();
 }


D:\J2EE1.4SDK\jdk\bin\java -Didea.launcher.port=7534 -Didea.launcher.library=F:\IntelliJ-IDEA-4.5\bin\breakgen.dll -Dfile.encoding=windows-1252 -classpath D:\J2EE1.4SDK\jdk\jre\lib\charsets.jar;D:\J2EE1.4SDK\jdk\jre\lib\jce.jar;D:\J2EE1.4SDK\jdk\jre\lib\jsse.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin_g.jar;D:\J2EE1.4SDK\jdk\jre\lib\rt.jar;D:\J2EE1.4SDK\jdk\jre\lib\sunrsasign.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\dnsns.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\ldapsec.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\localedata.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\sunjce_provider.jar;D:\J2EE1.4SDK\jdk\lib\activation.jar;D:\J2EE1.4SDK\jdk\lib\admin-cli.jar;D:\J2EE1.4SDK\jdk\lib\appserv-admin.jar;D:\J2EE1.4SDK\jdk\lib\appserv-assemblytool.jar;D:\J2EE1.4SDK\jdk\lib\appserv-cmp.jar;D:\J2EE1.4SDK\jdk\lib\appserv-ext.jar;D:\J2EE1.4SDK\jdk\lib\appserv-jstl.jar;D:\J2EE1.4SDK\jdk\lib\appserv-rt.jar;D:\J2EE1.4SDK\jdk\lib\appserv-tags.jar;D:\J2EE1.4SDK\jdk\lib\appserv-upgrade.jar;D:\J2EE1.4SDK\jdk\lib\commons-launcher.jar;D:\J2EE1.4SDK\jdk\lib\commons-logging.jar;D:\J2EE1.4SDK\jdk\lib\deployhelp.jar;D:\J2EE1.4SDK\jdk\lib\dt.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter_g.jar;D:\J2EE1.4SDK\jdk\lib\j2ee-svc.jar;D:\J2EE1.4SDK\jdk\lib\j2ee.jar;D:\J2EE1.4SDK\jdk\lib\jax-qname.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-impl.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-impl.jar;D:\J2EE1.4SDK\jdk\lib\jhall.jar;D:\J2EE1.4SDK\jdk\lib\mail.jar;D:\J2EE1.4SDK\jdk\lib\relaxngDatatype.jar;D:\J2EE1.4SDK\jdk\lib\saaj-api.jar;D:\J2EE1.4SDK\jdk\lib\saaj-impl.jar;D:\J2EE1.4SDK\jdk\lib\sun-appserv-ant.jar;D:\J2EE1.4SDK\jdk\lib\tools.jar;D:\J2EE1.4SDK\jdk\lib\xsdlib.jar;D:\J2EE1.4SDK\lib\endorsed\dom.jar;D:\J2EE1.4SDK\lib\endorsed\servlet-api.jar;D:\J2EE1.4SDK\lib\endorsed\servlet.jar;D:\J2EE1.4SDK\lib\endorsed\xalan.jar;D:\J2EE1.4SDK\lib\endorsed\xercesImpl.jar;D:\IntelliJ;D:\jdk1.2.1\src.jar;D:\j2sdk1.4.0_02\common\lib\servlet.jar;D:\JDBCDrivers\mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar;D:\JDBCDrivers\db2java.zip;D:\JDBCDrivers\msbase.jar;D:\JDBCDrivers\mssqlserver.jar;D:\JDBCDrivers\msutil.jar;D:\JDBCDrivers\mysql_comp.jar;D:\JDBCDrivers\mysql_uncomp.jar;D:\JDBCDrivers\Opta2000.jar;D:\JDBCDrivers\ora9\classes12.zip;D:\JDBCDrivers\jtds-0.6-rc1.jar;D:\Layouts\TableLayout.jar;D:\jakarta-log4j-1.2.8\dist\lib\log4j-1.2.8.jar;F:\jdom-1.0\build\jdom.jar;D:\jpim-0.1\build\jpim.jar;D:\Jacob\jacob.jar;D:\SystemTray\systray.jar;D:\MindIM\lib\common\ostermillerutils_1_02_24.jar;F:\commonsProj\commons-httpclient-2.0\commons-httpclient-2.0.jar;F:\commonsProj\commons-logging-1.0.3\commons-logging-api.jar;F:\commonsProj\commons-logging-1.0.3\commons-logging.jar;D:\htmlparser1_5\lib\htmllexer.jar;D:\htmlparser1_5\lib\htmlparser.jar;D:\htmlparser1_5\src;D:\JUnit\junit3.8.1\junit.jar;S:\Mindbridge\lib\commons-logging-api.jar;S:\Mindbridge\lib\commons-logging.jar;S:\Mindbridge\lib\commons-httpclient-2.0.jar;S:\Mindbridge\lib\commons-net-1.1.0.jar;S:\Mindbridge\lib\commons-vfs-1.0-dev.jar;S:\Mindbridge\lib\informa.jar;S:\Mindbridge\lib\jcifs-0.8.2.jar;S:\Mindbridge\lib\jsch-0.1.13.zip;S:\Mindbridge\lib\lucene-1.4-final.jar;S:\Mindbridge\lib\lucene-demos-1.4-final.jar;F:\CvsCheckOut\IntrasmartAPI\dist\latest\IntraSmartAPI-dev.jar;D:\xerces-2_5_0\xercesImpl.jar;D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xml-apis.jar;D:\xerces-2_5_0\xmlParserAPIs.jar;F:\IntelliJ-IDEA-4.5\lib\idea_rt.jar com.intellij.rt.execution.application.AppMain TestPlain
0 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java version: 1.4.2_02
0 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java vendor: Sun Microsystems Inc.
0 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java class path: D:\J2EE1.4SDK\jdk\jre\lib\charsets.jar;D:\J2EE1.4SDK\jdk\jre\lib\jce.jar;D:\J2EE1.4SDK\jdk\jre\lib\jsse.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin_g.jar;D:\J2EE1.4SDK\jdk\jre\lib\rt.jar;D:\J2EE1.4SDK\jdk\jre\lib\sunrsasign.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\dnsns.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\ldapsec.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\localedata.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\sunjce_provider.jar;D:\J2EE1.4SDK\jdk\lib\activation.jar;D:\J2EE1.4SDK\jdk\lib\admin-cli.jar;D:\J2EE1.4SDK\jdk\lib\appserv-admin.jar;D:\J2EE1.4SDK\jdk\lib\appserv-assemblytool.jar;D:\J2EE1.4SDK\jdk\lib\appserv-cmp.jar;D:\J2EE1.4SDK\jdk\lib\appserv-ext.jar;D:\J2EE1.4SDK\jdk\lib\appserv-jstl.jar;D:\J2EE1.4SDK\jdk\lib\appserv-rt.jar;D:\J2EE1.4SDK\jdk\lib\appserv-tags.jar;D:\J2EE1.4SDK\jdk\lib\appserv-upgrade.jar;D:\J2EE1.4SDK\jdk\lib\commons-launcher.jar;D:\J2EE1.4SDK\jdk\lib\commons-logging.jar;D:\J2EE1.4SDK\jdk\lib\deployhelp.jar;D:\J2EE1.4SDK\jdk\lib\dt.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter_g.jar;D:\J2EE1.4SDK\jdk\lib\j2ee-svc.jar;D:\J2EE1.4SDK\jdk\lib\j2ee.jar;D:\J2EE1.4SDK\jdk\lib\jax-qname.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-impl.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-impl.jar;D:\J2EE1.4SDK\jdk\lib\jhall.jar;D:\J2EE1.4SDK\jdk\lib\mail.jar;D:\J2EE1.4SDK\jdk\lib\relaxngDatatype.jar;D:\J2EE1.4SDK\jdk\lib\saaj-api.jar;D:\J2EE1.4SDK\jdk\lib\saaj-impl.jar;D:\J2EE1.4SDK\jdk\lib\sun-appserv-ant.jar;D:\J2EE1.4SDK\jdk\lib\tools.jar;D:\J2EE1.4SDK\jdk\lib\xsdlib.jar;D:\J2EE1.4SDK\lib\endorsed\dom.jar;D:\J2EE1.4SDK\lib\endorsed\servlet-api.jar;D:\J2EE1.4SDK\lib\endorsed\servlet.jar;D:\J2EE1.4SDK\lib\endorsed\xalan.jar;D:\J2EE1.4SDK\lib\endorsed\xercesImpl.jar;D:\IntelliJ;D:\jdk1.2.1\src.jar;D:\j2sdk1.4.0_02\common\lib\servlet.jar;D:\JDBCDrivers\mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar;D:\JDBCDrivers\db2java.zip;D:\JDBCDrivers\msbase.jar;D:\JDBCDrivers\mssqlserver.jar;D:\JDBCDrivers\msutil.jar;D:\JDBCDrivers\mysql_comp.jar;D:\JDBCDrivers\mysql_uncomp.jar;D:\JDBCDrivers\Opta2000.jar;D:\JDBCDrivers\ora9\classes12.zip;D:\JDBCDrivers\jtds-0.6-rc1.jar;D:\Layouts\TableLayout.jar;D:\jakarta-log4j-1.2.8\dist\lib\log4j-1.2.8.jar;F:\jdom-1.0\build\jdom.jar;D:\jpim-0.1\build\jpim.jar;D:\Jacob\jacob.jar;D:\SystemTray\systray.jar;D:\MindIM\lib\common\ostermillerutils_1_02_24.jar;F:\commonsProj\commons-httpclient-2.0\commons-httpclient-2.0.jar;F:\commonsProj\commons-logging-1.0.3\commons-logging-api.jar;F:\commonsProj\commons-logging-1.0.3\commons-logging.jar;D:\htmlparser1_5\lib\htmllexer.jar;D:\htmlparser1_5\lib\htmlparser.jar;D:\htmlparser1_5\src;D:\JUnit\junit3.8.1\junit.jar;S:\Mindbridge\lib\commons-logging-api.jar;S:\Mindbridge\lib\commons-logging.jar;S:\Mindbridge\lib\commons-httpclient-2.0.jar;S:\Mindbridge\lib\commons-net-1.1.0.jar;S:\Mindbridge\lib\commons-vfs-1.0-dev.jar;S:\Mindbridge\lib\informa.jar;S:\Mindbridge\lib\jcifs-0.8.2.jar;S:\Mindbridge\lib\jsch-0.1.13.zip;S:\Mindbridge\lib\lucene-1.4-final.jar;S:\Mindbridge\lib\lucene-demos-1.4-final.jar;F:\CvsCheckOut\IntrasmartAPI\dist\latest\IntraSmartAPI-dev.jar;D:\xerces-2_5_0\xercesImpl.jar;D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xml-apis.jar;D:\xerces-2_5_0\xmlParserAPIs.jar;F:\IntelliJ-IDEA-4.5\lib\idea_rt.jar
10 [main] DEBUG org.apache.commons.httpclient.HttpClient - Operating system name: Windows NT
20 [main] DEBUG org.apache.commons.httpclient.HttpClient - Operating system architecture: x86
20 [main] DEBUG org.apache.commons.httpclient.HttpClient - Operating system version: 4.0
370 [main] DEBUG org.apache.commons.httpclient.HttpClient - SUN 1.42: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores)
370 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunJSSE 1.42: Sun JSSE provider(implements RSA Signatures, PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
370 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunRsaSign 1.42: SUN's provider for RSA signatures
370 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunJCE 1.42: SunJCE Provider (implements DES, Triple DES, AES, Blowfish, PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
370 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunJGSS 1.0: Sun (Kerberos v5)
520 [main] DEBUG org.apache.commons.httpclient.methods.GetMethod - enter GetMethod(String)
520 [main] DEBUG org.apache.commons.httpclient.HttpClient - enter HttpClient.executeMethod(HttpMethod)
520 [main] DEBUG org.apache.commons.httpclient.HttpClient - enter HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
550 [main] DEBUG org.apache.commons.httpclient.HttpConnection - HttpConnection.setSoTimeout(0)
550 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.open()
1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.execute(HttpState, HttpConnection)
1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Execute loop try 1
1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.processRequest(HttpState, HttpConnection)
1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Attempt number 1 to process request
1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequest(HttpState, HttpConnection)
1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.generateRequestLine(HttpConnection, String, String, String, String)
1602 [main] DEBUG httpclient.wire - >> "GET / HTTP/1.1[\r][\n]"
1602 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
1602 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
1612 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Adding Host request header
1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
1642 [main] DEBUG org.apache.commons.httpclient.HttpState - enter HttpState.getCookies()
1642 [main] DEBUG org.apache.commons.httpclient.cookie.CookieSpec - enter CookieSpecBase.match(String, int, String, boolean, Cookie[])
1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addAuthorizationRequestHeader(HttpState, HttpConnection)
1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState, HttpConnection)
1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addContentLengthRequestHeader(HttpState, HttpConnection)
1642 [main] DEBUG httpclient.wire - >> "User-Agent: Jakarta Commons-HttpClient/2.0final[\r][\n]"
1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
1642 [main] DEBUG httpclient.wire - >> "Host: www.verisign.com[\r][\n]"
1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.writeLine()
1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.flushRequestOutputStream()
2022 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.close()
2022 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.closeSockedAndStreams()
2022 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.close()
2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.closeSockedAndStreams()
2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.close()
2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.closeSockedAndStreams()
2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.releaseConnection()
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
	at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
	at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1368)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
	at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:799)
	at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2277)
	at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2657)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1093)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:675)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529)
	at TestPlain.main(TestPlain.java:46)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
Caused by: sun.security.validator.ValidatorException: No trusted certificate found
	at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304)
	at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107)
	at sun.security.validator.Validator.validate(Validator.java:202)
	at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA6275)
	at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA6275)
	... 22 more
null
count = 0, total = 67

Process finished with exit code 0




Thanks in advance.
Mike Clovis


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: RE: SSL using Example on Website

Posted by Michael Clovis <mc...@mindbridge.com>.
Ivan,
 Thanks for your quick reply.. I had tried the examples on website and have changed stub example to following ( with same results).

 BasicConfigurator.configure();
 Protocol stricthttps = new Protocol( "https", new StrictSSLProtocolSocketFactory(true), 443);
 HttpClient client = new HttpClient();
 client.getHostConfiguration().setHost("www.verizon.com", 443, stricthttps);

 GetMethod httpget = new GetMethod("https://www.verisign.com/");
 try {
 try {
 client.executeMethod(httpget);
 } catch (IOException e) {
 e.printStackTrace();

 }
 System.out.println(httpget.getStatusLine());
 } finally {
 httpget.releaseConnection();
 }


D:\J2EE1.4SDK\jdk\bin\java -Didea.launcher.port=7533 -Didea.launcher.library=F:\IntelliJ-IDEA-4.5\bin\breakgen.dll -Dfile.encoding=windows-1252 -classpath D:\J2EE1.4SDK\jdk\jre\lib\charsets.jar;D:\J2EE1.4SDK\jdk\jre\lib\jce.jar;D:\J2EE1.4SDK\jdk\jre\lib\jsse.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin_g.jar;D:\J2EE1.4SDK\jdk\jre\lib\rt.jar;D:\J2EE1.4SDK\jdk\jre\lib\sunrsasign.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\dnsns.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\ldapsec.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\localedata.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\sunjce_provider.jar;D:\J2EE1.4SDK\jdk\lib\activation.jar;D:\J2EE1.4SDK\jdk\lib\admin-cli.jar;D:\J2EE1.4SDK\jdk\lib\appserv-admin.jar;D:\J2EE1.4SDK\jdk\lib\appserv-assemblytool.jar;D:\J2EE1.4SDK\jdk\lib\appserv-cmp.jar;D:\J2EE1.4SDK\jdk\lib\appserv-ext.jar;D:\J2EE1.4SDK\jdk\lib\appserv-jstl.jar;D:\J2EE1.4SDK\jdk\lib\appserv-rt.jar;D:\J2EE1.4SDK\jdk\lib\appserv-tags.jar;D:\J2EE1.4SDK\jdk\lib\appserv-upgrade.jar;D:\J2EE1.4SDK\jdk\lib\commons-launcher.jar;D:\J2EE1.4SDK\jdk\lib\commons-logging.jar;D:\J2EE1.4SDK\jdk\lib\deployhelp.jar;D:\J2EE1.4SDK\jdk\lib\dt.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter_g.jar;D:\J2EE1.4SDK\jdk\lib\j2ee-svc.jar;D:\J2EE1.4SDK\jdk\lib\j2ee.jar;D:\J2EE1.4SDK\jdk\lib\jax-qname.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-impl.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-impl.jar;D:\J2EE1.4SDK\jdk\lib\jhall.jar;D:\J2EE1.4SDK\jdk\lib\mail.jar;D:\J2EE1.4SDK\jdk\lib\relaxngDatatype.jar;D:\J2EE1.4SDK\jdk\lib\saaj-api.jar;D:\J2EE1.4SDK\jdk\lib\saaj-impl.jar;D:\J2EE1.4SDK\jdk\lib\sun-appserv-ant.jar;D:\J2EE1.4SDK\jdk\lib\tools.jar;D:\J2EE1.4SDK\jdk\lib\xsdlib.jar;D:\J2EE1.4SDK\lib\endorsed\dom.jar;D:\J2EE1.4SDK\lib\endorsed\servlet-api.jar;D:\J2EE1.4SDK\lib\endorsed\servlet.jar;D:\J2EE1.4SDK\lib\endorsed\xalan.jar;D:\J2EE1.4SDK\lib\endorsed\xercesImpl.jar;D:\IntelliJ;D:\jdk1.2.1\src.jar;D:\j2sdk1.4.0_02\common\lib\servlet.jar;D:\JDBCDrivers\mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar;D:\JDBCDrivers\db2java.zip;D:\JDBCDrivers\msbase.jar;D:\JDBCDrivers\mssqlserver.jar;D:\JDBCDrivers\msutil.jar;D:\JDBCDrivers\mysql_comp.jar;D:\JDBCDrivers\mysql_uncomp.jar;D:\JDBCDrivers\Opta2000.jar;D:\JDBCDrivers\ora9\classes12.zip;D:\JDBCDrivers\jtds-0.6-rc1.jar;D:\Layouts\TableLayout.jar;D:\jakarta-log4j-1.2.8\dist\lib\log4j-1.2.8.jar;F:\jdom-1.0\build\jdom.jar;D:\jpim-0.1\build\jpim.jar;D:\Jacob\jacob.jar;D:\SystemTray\systray.jar;D:\MindIM\lib\common\ostermillerutils_1_02_24.jar;F:\commonsProj\commons-httpclient-2.0\commons-httpclient-2.0.jar;F:\commonsProj\commons-logging-1.0.3\commons-logging-api.jar;F:\commonsProj\commons-logging-1.0.3\commons-logging.jar;D:\htmlparser1_5\lib\htmllexer.jar;D:\htmlparser1_5\lib\htmlparser.jar;D:\htmlparser1_5\src;D:\JUnit\junit3.8.1\junit.jar;S:\Mindbridge\lib\commons-logging-api.jar;S:\Mindbridge\lib\commons-logging.jar;S:\Mindbridge\lib\commons-httpclient-2.0.jar;S:\Mindbridge\lib\commons-net-1.1.0.jar;S:\Mindbridge\lib\commons-vfs-1.0-dev.jar;S:\Mindbridge\lib\informa.jar;S:\Mindbridge\lib\jcifs-0.8.2.jar;S:\Mindbridge\lib\jsch-0.1.13.zip;S:\Mindbridge\lib\lucene-1.4-final.jar;S:\Mindbridge\lib\lucene-demos-1.4-final.jar;F:\CvsCheckOut\IntrasmartAPI\dist\latest\IntraSmartAPI-dev.jar;D:\xerces-2_5_0\xercesImpl.jar;D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xml-apis.jar;D:\xerces-2_5_0\xmlParserAPIs.jar;F:\IntelliJ-IDEA-4.5\lib\idea_rt.jar com.intellij.rt.execution.application.AppMain TestPlain
0 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java version: 1.4.2_02
10 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java vendor: Sun Microsystems Inc.
10 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java class path: D:\J2EE1.4SDK\jdk\jre\lib\charsets.jar;D:\J2EE1.4SDK\jdk\jre\lib\jce.jar;D:\J2EE1.4SDK\jdk\jre\lib\jsse.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin_g.jar;D:\J2EE1.4SDK\jdk\jre\lib\rt.jar;D:\J2EE1.4SDK\jdk\jre\lib\sunrsasign.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\dnsns.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\ldapsec.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\localedata.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\sunjce_provider.jar;D:\J2EE1.4SDK\jdk\lib\activation.jar;D:\J2EE1.4SDK\jdk\lib\admin-cli.jar;D:\J2EE1.4SDK\jdk\lib\appserv-admin.jar;D:\J2EE1.4SDK\jdk\lib\appserv-assemblytool.jar;D:\J2EE1.4SDK\jdk\lib\appserv-cmp.jar;D:\J2EE1.4SDK\jdk\lib\appserv-ext.jar;D:\J2EE1.4SDK\jdk\lib\appserv-jstl.jar;D:\J2EE1.4SDK\jdk\lib\appserv-rt.jar;D:\J2EE1.4SDK\jdk\lib\appserv-tags.jar;D:\J2EE1.4SDK\jdk\lib\appserv-upgrade.jar;D:\J2EE1.4SDK\jdk\lib\commons-launcher.jar;D:\J2EE1.4SDK\jdk\lib\commons-logging.jar;D:\J2EE1.4SDK\jdk\lib\deployhelp.jar;D:\J2EE1.4SDK\jdk\lib\dt.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter_g.jar;D:\J2EE1.4SDK\jdk\lib\j2ee-svc.jar;D:\J2EE1.4SDK\jdk\lib\j2ee.jar;D:\J2EE1.4SDK\jdk\lib\jax-qname.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-impl.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-impl.jar;D:\J2EE1.4SDK\jdk\lib\jhall.jar;D:\J2EE1.4SDK\jdk\lib\mail.jar;D:\J2EE1.4SDK\jdk\lib\relaxngDatatype.jar;D:\J2EE1.4SDK\jdk\lib\saaj-api.jar;D:\J2EE1.4SDK\jdk\lib\saaj-impl.jar;D:\J2EE1.4SDK\jdk\lib\sun-appserv-ant.jar;D:\J2EE1.4SDK\jdk\lib\tools.jar;D:\J2EE1.4SDK\jdk\lib\xsdlib.jar;D:\J2EE1.4SDK\lib\endorsed\dom.jar;D:\J2EE1.4SDK\lib\endorsed\servlet-api.jar;D:\J2EE1.4SDK\lib\endorsed\servlet.jar;D:\J2EE1.4SDK\lib\endorsed\xalan.jar;D:\J2EE1.4SDK\lib\endorsed\xercesImpl.jar;D:\IntelliJ;D:\jdk1.2.1\src.jar;D:\j2sdk1.4.0_02\common\lib\servlet.jar;D:\JDBCDrivers\mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar;D:\JDBCDrivers\db2java.zip;D:\JDBCDrivers\msbase.jar;D:\JDBCDrivers\mssqlserver.jar;D:\JDBCDrivers\msutil.jar;D:\JDBCDrivers\mysql_comp.jar;D:\JDBCDrivers\mysql_uncomp.jar;D:\JDBCDrivers\Opta2000.jar;D:\JDBCDrivers\ora9\classes12.zip;D:\JDBCDrivers\jtds-0.6-rc1.jar;D:\Layouts\TableLayout.jar;D:\jakarta-log4j-1.2.8\dist\lib\log4j-1.2.8.jar;F:\jdom-1.0\build\jdom.jar;D:\jpim-0.1\build\jpim.jar;D:\Jacob\jacob.jar;D:\SystemTray\systray.jar;D:\MindIM\lib\common\ostermillerutils_1_02_24.jar;F:\commonsProj\commons-httpclient-2.0\commons-httpclient-2.0.jar;F:\commonsProj\commons-logging-1.0.3\commons-logging-api.jar;F:\commonsProj\commons-logging-1.0.3\commons-logging.jar;D:\htmlparser1_5\lib\htmllexer.jar;D:\htmlparser1_5\lib\htmlparser.jar;D:\htmlparser1_5\src;D:\JUnit\junit3.8.1\junit.jar;S:\Mindbridge\lib\commons-logging-api.jar;S:\Mindbridge\lib\commons-logging.jar;S:\Mindbridge\lib\commons-httpclient-2.0.jar;S:\Mindbridge\lib\commons-net-1.1.0.jar;S:\Mindbridge\lib\commons-vfs-1.0-dev.jar;S:\Mindbridge\lib\informa.jar;S:\Mindbridge\lib\jcifs-0.8.2.jar;S:\Mindbridge\lib\jsch-0.1.13.zip;S:\Mindbridge\lib\lucene-1.4-final.jar;S:\Mindbridge\lib\lucene-demos-1.4-final.jar;F:\CvsCheckOut\IntrasmartAPI\dist\latest\IntraSmartAPI-dev.jar;D:\xerces-2_5_0\xercesImpl.jar;D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xml-apis.jar;D:\xerces-2_5_0\xmlParserAPIs.jar;F:\IntelliJ-IDEA-4.5\lib\idea_rt.jar
10 [main] DEBUG org.apache.commons.httpclient.HttpClient - Operating system name: Windows NT
40 [main] DEBUG org.apache.commons.httpclient.HttpClient - Operating system architecture: x86
40 [main] DEBUG org.apache.commons.httpclient.HttpClient - Operating system version: 4.0
310 [main] DEBUG org.apache.commons.httpclient.HttpClient - SUN 1.42: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores)
310 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunJSSE 1.42: Sun JSSE provider(implements RSA Signatures, PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
310 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunRsaSign 1.42: SUN's provider for RSA signatures
310 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunJCE 1.42: SunJCE Provider (implements DES, Triple DES, AES, Blowfish, PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
310 [main] DEBUG org.apache.commons.httpclient.HttpClient - SunJGSS 1.0: Sun (Kerberos v5)
451 [main] DEBUG org.apache.commons.httpclient.methods.GetMethod - enter GetMethod(String)
451 [main] DEBUG org.apache.commons.httpclient.HttpClient - enter HttpClient.executeMethod(HttpMethod)
451 [main] DEBUG org.apache.commons.httpclient.HttpClient - enter HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
481 [main] DEBUG org.apache.commons.httpclient.HttpConnection - HttpConnection.setSoTimeout(0)
481 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.open()
1152 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.execute(HttpState, HttpConnection)
1152 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Execute loop try 1
1152 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.processRequest(HttpState, HttpConnection)
1152 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Attempt number 1 to process request
1152 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequest(HttpState, HttpConnection)
1152 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
1152 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.generateRequestLine(HttpConnection, String, String, String, String)
1162 [main] DEBUG httpclient.wire - >> "GET / HTTP/1.1[\r][\n]"
1162 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
1162 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
1162 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
1162 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
1162 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
1162 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
1172 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
1172 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Adding Host request header
1172 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
1192 [main] DEBUG org.apache.commons.httpclient.HttpState - enter HttpState.getCookies()
1192 [main] DEBUG org.apache.commons.httpclient.cookie.CookieSpec - enter CookieSpecBase.match(String, int, String, boolean, Cookie[])
1202 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addAuthorizationRequestHeader(HttpState, HttpConnection)
1202 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState, HttpConnection)
1202 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
1202 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - enter HttpMethodBase.addContentLengthRequestHeader(HttpState, HttpConnection)
1202 [main] DEBUG httpclient.wire - >> "User-Agent: Jakarta Commons-HttpClient/2.0final[\r][\n]"
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
1202 [main] DEBUG httpclient.wire - >> "Host: www.verisign.com[\r][\n]"
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.print(String)
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.writeLine()
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[])
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.write(byte[], int, int)
1202 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.flushRequestOutputStream()
1582 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.close()
1582 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.closeSockedAndStreams()
1582 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.close()
1582 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.closeSockedAndStreams()
1582 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.close()
1582 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.closeSockedAndStreams()
1582 [main] DEBUG org.apache.commons.httpclient.HttpConnection - enter HttpConnection.releaseConnection()
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
	at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
	at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1368)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
	at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:799)
	at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2277)
	at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2657)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1093)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:675)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529)
	at TestPlain.main(TestPlain.java:49)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
Caused by: sun.security.validator.ValidatorException: No trusted certificate found
	at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304)
	at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107)
	at sun.security.validator.Validator.validate(Validator.java:202)
	at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA6275)
	at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA6275)
	... 22 more
null
count = 0, total = 67

Process finished with exit code 0


Do I need to import certificate.. I didn't think so due to using Factory that didn't check client. 

Thanks in advance,
Mike

---------- Original Message ----------
Date: 8/17/05
From: Ivan Bojer <pu...@bojerco.com>
To: 'HttpClient User Discussion' <ht...@jakarta.apache.org>, 
	'Michael Clovis' <mc...@mindbridge.com>
Subject: RE: SSL using Example on Website

>Read <a href='http://jakarta.apache.org/commons/httpclient/sslguide.html' target='_top'>http://jakarta.apache.org/commons/httpclient/sslguide.html</a>

>You need to implement your own SecureProtocolSocketFactory or 
>manually import certs in the certstore. Samples are provided 
>on the web page.
>
>>-----Original Message-----
>>From: Michael Clovis [mailto:mclovis@mindbridge.com] 
>>Sent: Wednesday, August 17, 2005 10:30 AM
>>To: HttpClient User Discussion
>>Subject: SSL using Example on Website
>>
>>Trying to understand bigger SSL issues and copied (verbatim) 
>>test code from website see below with wire output and 
>>stacktrace.. I obviously don't understand something.. Any 
>>insight would be appreciated.
>>
>>
>> BasicConfigurator.configure();
>> HttpClient httpclient = new HttpClient(); GetMethod httpget 
>>= new <a href='GetMethod("https://www.verisign.com/");' target='_top'>GetMethod("https://www.verisign.com/");</a>
>> try {
>> try {
>> httpclient.executeMethod(httpget);
>> } catch (IOException e) {
>> e.printStackTrace();
>>
>> }
>> System.out.println(httpget.getStatusLine());
>> } finally {
>> httpget.releaseConnection();
>> }
>>
>>
>>D:\J2EE1.4SDK\jdk\bin\java -Didea.launcher.port=7534 
>>-Didea.launcher.library=F:\IntelliJ-IDEA-4.5\bin\breakgen.dll 
>>-Dfile.encoding=windows-1252 -classpath 
>>D:\J2EE1.4SDK\jdk\jre\lib\charsets.jar;D:\J2EE1.4SDK\jdk\jre\li
>>b\jce.jar;D:\J2EE1.4SDK\jdk\jre\lib\jsse.jar;D:\J2EE1.4SDK\jdk\
>>jre\lib\plugin.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin_g.jar;D:\J2
>>EE1.4SDK\jdk\jre\lib\rt.jar;D:\J2EE1.4SDK\jdk\jre\lib\sunrsasig
>>n.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\dnsns.jar;D:\J2EE1.4SDK\jdk
>>\jre\lib\ext\ldapsec.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\localeda
>>ta.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\sunjce_provider.jar;D:\J2E
>>E1.4SDK\jdk\lib\activation.jar;D:\J2EE1.4SDK\jdk\lib\admin-cli.
>>jar;D:\J2EE1.4SDK\jdk\lib\appserv-admin.jar;D:\J2EE1.4SDK\jdk\l
>>ib\appserv-assemblytool.jar;D:\J2EE1.4SDK\jdk\lib\appserv-cmp.j
>>ar;D:\J2EE1.4SDK\jdk\lib\appserv-ext.jar;D:\J2EE1.4SDK\jdk\lib\
>>appserv-jstl.jar;D:\J2EE1.4SDK\jdk\lib\appserv-rt.jar;D:\J2EE1.
>>4SDK\jdk\lib\appserv-tags.jar;D:\J2EE1.4SDK\jdk\lib\appserv-upg
>>rade.jar;D:\J2EE1.4SDK\jdk\lib\commons-launcher.jar;D:\J2EE1.4S
>>DK\jdk\lib\commons-logging.jar;D:\J2EE1.4SDK\jdk\lib\deployhelp
>>.jar;D:\J2EE1.4SDK\jdk\lib\dt.jar;D:\J2EE1.4SDK\jdk\lib\htmlcon
>>verter.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter_g.jar;D:\J2EE1.4
>>SDK\jdk\lib\j2ee-svc.jar;D:\J2EE1.4SDK\jdk\lib\j2ee.jar;D:\J2EE
>>1.4SDK\jdk\lib\jax-qname.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-api.jar
>>;D:\J2EE1.4SDK\jdk\lib\jaxr-impl.jar;D:\J2EE1.4SDK\jdk\lib\jaxr
>>pc-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-impl.jar;D:\J2EE1.4SDK\
>>jdk\lib\jhall.jar;D:\J2EE1.4SDK\jdk\lib\mail.jar;D:\J2EE1.4SDK\
>>jdk\lib\relaxngDatatype.jar;D:\J2EE1.4SDK\jdk\lib\saaj-api.jar;
>>D:\J2EE1.4SDK\jdk\lib\saaj-impl.jar;D:\J2EE1.4SDK\jdk\lib\sun-a
>>ppserv-ant.jar;D:\J2EE1.4SDK\jdk\lib\tools.jar;D:\J2EE1.4SDK\jd
>>k\lib\xsdlib.jar;D:\J2EE1.4SDK\lib\endorsed\dom.jar;D:\J2EE1.4S
>>DK\lib\endorsed\servlet-api.jar;D:\J2EE1.4SDK\lib\endorsed\serv
>>let.jar;D:\J2EE1.4SDK\lib\endorsed\xalan.jar;D:\J2EE1.4SDK\lib\
>>endorsed\xercesImpl.jar;D:\IntelliJ;D:\jdk1.2.1\src.jar;D:\j2sd
>>k1.4.0_02\common\lib\servlet.jar;D:\JDBCDrivers\mysql-connector
>>-java-2.0.14\mysql-connector-java-2.0.14-bin.jar;D:\JDBCDrivers
>>\db2java.zip;D:\JDBCDrivers\msbase.jar;D:\JDBCDrivers\mssqlserv
>>er.jar;D:\JDBCDrivers\msutil.jar;D:\JDBCDrivers\mysql_comp.jar;
>>D:\JDBCDrivers\mysql_uncomp.jar;D:\JDBCDrivers\Opta2000.jar;D:\
>>JDBCDrivers\ora9\classes12.zip;D:\JDBCDrivers\jtds-0.6-rc1.jar;
>>D:\Layouts\TableLayout.jar;D:\jakarta-log4j-1.2.8\dist\lib\log4
>>j-1.2.8.jar;F:\jdom-1.0\build\jdom.jar;D:\jpim-0.1\build\jpim.j
>>ar;D:\Jacob\jacob.jar;D:\SystemTray\systray.jar;D:\MindIM\lib\c
>>ommon\ostermillerutils_1_02_24.jar;F:\commonsProj\commons-httpc
>>lient-2.0\commons-httpclient-2.0.jar;F:\commonsProj\commons-log
>>ging-1.0.3\commons-logging-api.jar;F:\commonsProj\commons-loggi
>>ng-1.0.3\commons-logging.jar;D:\htmlparser1_5\lib\htmllexer.jar
>>;D:\htmlparser1_5\lib\htmlparser.jar;D:\htmlparser1_5\src;D:\JU
>>nit\junit3.8.1\junit.jar;S:\Mindbridge\lib\commons-logging-api.
>>jar;S:\Mindbridge\lib\commons-logging.jar;S:\Mindbridge\lib\com
>>mons-httpclient-2.0.jar;S:\Mindbridge\lib\commons-net-1.1.0.jar
>>;S:\Mindbridge\lib\commons-vfs-1.0-dev.jar;S:\Mindbridge\lib\in
>>forma.jar;S:\Mindbridge\lib\jcifs-0.8.2.jar;S:\Mindbridge\lib\j
>>sch-0.1.13.zip;S:\Mindbridge\lib\lucene-1.4-final.jar;S:\Mindbr
>>idge\lib\lucene-demos-1.4-final.jar;F:\CvsCheckOut\IntrasmartAP
>>I\dist\latest\IntraSmartAPI-dev.jar;D:\xerces-2_5_0\xercesImpl.
>>jar;D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xml-apis.
>>jar;D:\xerces-2_5_0\xmlParserAPIs.jar;F:\IntelliJ-IDEA-4.5\lib\
>>idea_rt.jar com.intellij.rt.execution.application.AppMain 
>>TestPlain 0 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - Java version: 
>>1.4.2_02 0 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - Java vendor: Sun 
>>Microsystems Inc.
>>0 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java 
>>class path: 
>>D:\J2EE1.4SDK\jdk\jre\lib\charsets.jar;D:\J2EE1.4SDK\jdk\jre\li
>>b\jce.jar;D:\J2EE1.4SDK\jdk\jre\lib\jsse.jar;D:\J2EE1.4SDK\jdk\
>>jre\lib\plugin.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin_g.jar;D:\J2
>>EE1.4SDK\jdk\jre\lib\rt.jar;D:\J2EE1.4SDK\jdk\jre\lib\sunrsasig
>>n.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\dnsns.jar;D:\J2EE1.4SDK\jdk
>>\jre\lib\ext\ldapsec.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\localeda
>>ta.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\sunjce_provider.jar;D:\J2E
>>E1.4SDK\jdk\lib\activation.jar;D:\J2EE1.4SDK\jdk\lib\admin-cli.
>>jar;D:\J2EE1.4SDK\jdk\lib\appserv-admin.jar;D:\J2EE1.4SDK\jdk\l
>>ib\appserv-assemblytool.jar;D:\J2EE1.4SDK\jdk\lib\appserv-cmp.j
>>ar;D:\J2EE1.4SDK\jdk\lib\appserv-ext.jar;D:\J2EE1.4SDK\jdk\lib\
>>appserv-jstl.jar;D:\J2EE1.4SDK\jdk\lib\appserv-rt.jar;D:\J2EE1.
>>4SDK\jdk\lib\appserv-tags.jar;D:\J2EE1.4SDK\jdk\lib\appserv-upg
>>rade.jar;D:\J2EE1.4SDK\jdk\lib\commons-launcher.jar;D:\J2EE1.4S
>>DK\jdk\lib\commons-logging.jar;D:\J2EE1.4SDK\jdk\lib\deployhelp
>>.jar;D:\J2EE1.4SDK\jdk\lib\dt.jar;D:\J2EE1.4SDK\jdk\lib\htmlcon
>>verter.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter_g.jar;D:\J2EE1.4
>>SDK\jdk\lib\j2ee-svc.jar;D:\J2EE1.4SDK\jdk\lib\j2ee.jar;D:\J2EE
>>1.4SDK\jdk\lib\jax-qname.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-api.jar
>>;D:\J2EE1.4SDK\jdk\lib\jaxr-impl.jar;D:\J2EE1.4SDK\jdk\lib\jaxr
>>pc-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-impl.jar;D:\J2EE1.4SDK\
>>jdk\lib\jhall.jar;D:\J2EE1.4SDK\jdk\lib\mail.jar;D:\J2EE1.4SDK\
>>jdk\lib\relaxngDatatype.jar;D:\J2EE1.4SDK\jdk\lib\saaj-api.jar;
>>D:\J2EE1.4SDK\jdk\lib\saaj-impl.jar;D:\J2EE1.4SDK\jdk\lib\sun-a
>>ppserv-ant.jar;D:\J2EE1.4SDK\jdk\lib\tools.jar;D:\J2EE1.4SDK\jd
>>k\lib\xsdlib.jar;D:\J2EE1.4SDK\lib\endorsed\dom.jar;D:\J2EE1.4S
>>DK\lib\endorsed\servlet-api.jar;D:\J2EE1.4SDK\lib\endorsed\serv
>>let.jar;D:\J2EE1.4SDK\lib\endorsed\xalan.jar;D:\J2EE1.4SDK\lib\
>>endorsed\xercesImpl.jar;D:\IntelliJ;D:\jdk1.2.1\src.jar;D:\j2sd
>>k1.4.0_02\common\lib\servlet.jar;D:\JDBCDrivers\mysql-connector
>>-java-2.0.14\mysql-connector-java-2.0.14-bin.jar;D:\JDBCDrivers
>>\db2java.zip;D:\JDBCDrivers\msbase.jar;D:\JDBCDrivers\mssqlserv
>>er.jar;D:\JDBCDrivers\msutil.jar;D:\JDBCDrivers\mysql_comp.jar;
>>D:\JDBCDrivers\mysql_uncomp.jar;D:\JDBCDrivers\Opta2000.jar;D:\
>>JDBCDrivers\ora9\classes12.zip;D:\JDBCDrivers\jtds-0.6-rc1.jar;
>>D:\Layouts\TableLayout.jar;D:\jakarta-log4j-1.2.8\dist\lib\log4
>>j-1.2.8.jar;F:\jdom-1.0\build\jdom.jar;D:\jpim-0.1\build\jpim.j
>>ar;D:\Jacob\jacob.jar;D:\SystemTray\systray.jar;D:\MindIM\lib\c
>>ommon\ostermillerutils_1_02_24.jar;F:\commonsProj\commons-httpc
>>lient-2.0\commons-httpclient-2.0.jar;F:\commonsProj\commons-log
>>ging-1.0.3\commons-logging-api.jar;F:\commonsProj\commons-loggi
>>ng-1.0.3\commons-logging.jar;D:\htmlparser1_5\lib\htmllexer.jar
>>;D:\htmlparser1_5\lib\htmlparser.jar;D:\htmlparser1_5\src;D:\JU
>>nit\junit3.8.1\junit.jar;S:\Mindbridge\lib\commons-logging-api.
>>jar;S:\Mindbridge\lib\commons-logging.jar;S:\Mindbridge\lib\com
>>mons-httpclient-2.0.jar;S:\Mindbridge\lib\commons-net-1.1.0.jar
>>;S:\Mindbridge\lib\commons-vfs-1.0-dev.jar;S:\Mindbridge\lib\in
>>forma.jar;S:\Mindbridge\lib\jcifs-0.8.2.jar;S:\Mindbridge\lib\j
>>sch-0.1.13.zip;S:\Mindbridge\lib\lucene-1.4-final.jar;S:\Mindbr
>>idge\lib\lucene-demos-1.4-final.jar;F:\CvsCheckOut\IntrasmartAP
>>I\dist\latest\IntraSmartAPI-dev.jar;D:\xerces-2_5_0\xercesImpl.
>>jar;D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xml-apis.
>>jar;D:\xerces-2_5_0\xmlParserAPIs.jar;F:\IntelliJ-IDEA-4.5\lib\
>>idea_rt.jar
>>10 [main] DEBUG org.apache.commons.httpclient.HttpClient - 
>>Operating system name: Windows NT 20 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - Operating system 
>>architecture: x86 20 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - Operating system 
>>version: 4.0 370 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - SUN 1.42: SUN (DSA 
>>key/parameter generation; DSA signing; SHA-1, MD5 digests; 
>>SecureRandom; X.509 certificates; JKS keystore; PKIX 
>>CertPathValidator; PKIX CertPathBuilder; LDAP, Collection 
>>CertStores) 370 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - SunJSSE 1.42: Sun 
>>JSSE provider(implements RSA Signatures, PKCS12, SunX509 
>>key/trust factories, SSLv3, TLSv1) 370 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - SunRsaSign 1.42: 
>>SUN's provider for RSA signatures 370 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - SunJCE 1.42: SunJCE 
>>Provider (implements DES, Triple DES, AES, Blowfish, PBE, 
>>Diffie-Hellman, HMAC-MD5, HMAC-SHA1) 370 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - SunJGSS 1.0: Sun 
>>(Kerberos v5) 520 [main] DEBUG 
>>org.apache.commons.httpclient.methods.GetMethod - enter 
>>GetMethod(String) 520 [main] DEBUG 
>>org.apache.commons.httpclient.HttpClient - enter 
>>HttpClient.executeMethod(HttpMethod)
>>520 [main] DEBUG org.apache.commons.httpclient.HttpClient - 
>>enter HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
>>550 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- HttpConnection.setSoTimeout(0) 550 [main] DEBUG 
>>org.apache.commons.httpclient.HttpConnection - enter 
>>HttpConnection.open()
>>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.execute(HttpState, HttpConnection)
>>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- Execute loop try 1
>>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.processRequest(HttpState, HttpConnection)
>>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- Attempt number 1 to process request
>>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.writeRequest(HttpState, HttpConnection)
>>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
>>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.generateRequestLine(HttpConnection, 
>>String, String, String, String)
>>1602 [main] DEBUG httpclient.wire - >> "GET / HTTP/1.1[\r][\n]"
>>1602 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.print(String)
>>1602 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.write(byte[])
>>1612 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.write(byte[], int, int)
>>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
>>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
>>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, 
>>HttpConnection)
>>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
>>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- Adding Host request header
>>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.addCookieRequestHeader(HttpState, 
>>HttpConnection)
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpState - 
>>enter HttpState.getCookies()
>>1642 [main] DEBUG 
>>org.apache.commons.httpclient.cookie.CookieSpec - enter 
>>CookieSpecBase.match(String, int, String, boolean, Cookie[])
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter 
>>HttpMethodBase.addAuthorizationRequestHeader(HttpState, HttpConnection)
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter 
>>HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState, 
>>HttpConnection)
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter HttpMethodBase.addProxyConnectionHeader(HttpState, 
>>HttpConnection)
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>>- enter 
>>HttpMethodBase.addContentLengthRequestHeader(HttpState, HttpConnection)
>>1642 [main] DEBUG httpclient.wire - >> "User-Agent: Jakarta 
>>Commons-HttpClient/2.0final[\r][\n]"
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.print(String)
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.write(byte[])
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.write(byte[], int, int)
>>1642 [main] DEBUG httpclient.wire - >> "Host: www.verisign.com[\r][\n]"
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.print(String)
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.write(byte[])
>>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.write(byte[], int, int)
>>1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.writeLine()
>>1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.write(byte[])
>>1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.write(byte[], int, int)
>>1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.flushRequestOutputStream()
>>2022 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.close()
>>2022 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.closeSockedAndStreams()
>>2022 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.close()
>>2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.closeSockedAndStreams()
>>2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.close()
>>2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.closeSockedAndStreams()
>>2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>>- enter HttpConnection.releaseConnection()
>>javax.net.ssl.SSLHandshakeException: 
>>sun.security.validator.ValidatorException: No trusted certificate found
>>	at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
>>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>>	at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
>>	at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
>>	at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
>>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
>>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>>	at 
>>com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
>>	at 
>>org.apache.commons.httpclient.HttpConnection$WrappedOutputStrea
>>m.write(HttpConnection.java:1368)
>>	at 
>>java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
>>	at 
>>java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
>>	at 
>>org.apache.commons.httpclient.HttpConnection.flushRequestOutput
>>Stream(HttpConnection.java:799)
>>	at 
>>org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpM
>>ethodBase.java:2277)
>>	at 
>>org.apache.commons.httpclient.HttpMethodBase.processRequest(Htt
>>pMethodBase.java:2657)
>>	at 
>>org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethod
>>Base.java:1093)
>>	at 
>>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
>>nt.java:675)
>>	at 
>>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
>>nt.java:529)
>>	at TestPlain.main(TestPlain.java:46)
>>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>	at 
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso
>>rImpl.java:39)
>>	at 
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho
>>dAccessorImpl.java:25)
>>	at java.lang.reflect.Method.invoke(Method.java:324)
>>	at 
>>com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
>>Caused by: sun.security.validator.ValidatorException: No 
>>trusted certificate found
>>	at 
>>sun.security.validator.SimpleValidator.buildTrustedChain(Simple
>>Validator.java:304)
>>	at 
>>sun.security.validator.SimpleValidator.engineValidate(SimpleVal
>>idator.java:107)
>>	at sun.security.validator.Validator.validate(Validator.java:202)
>>	at 
>>com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTr
>>usted(DashoA6275)
>>	at 
>>com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTr
>>usted(DashoA6275)
>>	... 22 more
>>null
>>count = 0, total = 67
>>
>>Process finished with exit code 0
>>
>>
>>
>>
>>Thanks in advance.
>>Mike Clovis
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: 
>>httpclient-user-help@jakarta.apache.org
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: httpclient-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


RE: SSL using Example on Website

Posted by Ivan Bojer <pu...@bojerco.com>.
Read http://jakarta.apache.org/commons/httpclient/sslguide.html

You need to implement your own SecureProtocolSocketFactory or 
manually import certs in the certstore. Samples are provided 
on the web page.

>-----Original Message-----
>From: Michael Clovis [mailto:mclovis@mindbridge.com] 
>Sent: Wednesday, August 17, 2005 10:30 AM
>To: HttpClient User Discussion
>Subject: SSL using Example on Website
>
>Trying to understand bigger SSL issues and copied (verbatim) 
>test code from website see below with wire output and 
>stacktrace.. I obviously don't understand something.. Any 
>insight would be appreciated.
>
>
> BasicConfigurator.configure();
> HttpClient httpclient = new HttpClient();  GetMethod httpget 
>= new GetMethod("https://www.verisign.com/");
> try {
> try {
> httpclient.executeMethod(httpget);
> } catch (IOException e) {
> e.printStackTrace();
>
> }
> System.out.println(httpget.getStatusLine());
> } finally {
> httpget.releaseConnection();
> }
>
>
>D:\J2EE1.4SDK\jdk\bin\java -Didea.launcher.port=7534 
>-Didea.launcher.library=F:\IntelliJ-IDEA-4.5\bin\breakgen.dll 
>-Dfile.encoding=windows-1252 -classpath 
>D:\J2EE1.4SDK\jdk\jre\lib\charsets.jar;D:\J2EE1.4SDK\jdk\jre\li
>b\jce.jar;D:\J2EE1.4SDK\jdk\jre\lib\jsse.jar;D:\J2EE1.4SDK\jdk\
>jre\lib\plugin.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin_g.jar;D:\J2
>EE1.4SDK\jdk\jre\lib\rt.jar;D:\J2EE1.4SDK\jdk\jre\lib\sunrsasig
>n.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\dnsns.jar;D:\J2EE1.4SDK\jdk
>\jre\lib\ext\ldapsec.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\localeda
>ta.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\sunjce_provider.jar;D:\J2E
>E1.4SDK\jdk\lib\activation.jar;D:\J2EE1.4SDK\jdk\lib\admin-cli.
>jar;D:\J2EE1.4SDK\jdk\lib\appserv-admin.jar;D:\J2EE1.4SDK\jdk\l
>ib\appserv-assemblytool.jar;D:\J2EE1.4SDK\jdk\lib\appserv-cmp.j
>ar;D:\J2EE1.4SDK\jdk\lib\appserv-ext.jar;D:\J2EE1.4SDK\jdk\lib\
>appserv-jstl.jar;D:\J2EE1.4SDK\jdk\lib\appserv-rt.jar;D:\J2EE1.
>4SDK\jdk\lib\appserv-tags.jar;D:\J2EE1.4SDK\jdk\lib\appserv-upg
>rade.jar;D:\J2EE1.4SDK\jdk\lib\commons-launcher.jar;D:\J2EE1.4S
>DK\jdk\lib\commons-logging.jar;D:\J2EE1.4SDK\jdk\lib\deployhelp
>.jar;D:\J2EE1.4SDK\jdk\lib\dt.jar;D:\J2EE1.4SDK\jdk\lib\htmlcon
>verter.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter_g.jar;D:\J2EE1.4
>SDK\jdk\lib\j2ee-svc.jar;D:\J2EE1.4SDK\jdk\lib\j2ee.jar;D:\J2EE
>1.4SDK\jdk\lib\jax-qname.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-api.jar
>;D:\J2EE1.4SDK\jdk\lib\jaxr-impl.jar;D:\J2EE1.4SDK\jdk\lib\jaxr
>pc-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-impl.jar;D:\J2EE1.4SDK\
>jdk\lib\jhall.jar;D:\J2EE1.4SDK\jdk\lib\mail.jar;D:\J2EE1.4SDK\
>jdk\lib\relaxngDatatype.jar;D:\J2EE1.4SDK\jdk\lib\saaj-api.jar;
>D:\J2EE1.4SDK\jdk\lib\saaj-impl.jar;D:\J2EE1.4SDK\jdk\lib\sun-a
>ppserv-ant.jar;D:\J2EE1.4SDK\jdk\lib\tools.jar;D:\J2EE1.4SDK\jd
>k\lib\xsdlib.jar;D:\J2EE1.4SDK\lib\endorsed\dom.jar;D:\J2EE1.4S
>DK\lib\endorsed\servlet-api.jar;D:\J2EE1.4SDK\lib\endorsed\serv
>let.jar;D:\J2EE1.4SDK\lib\endorsed\xalan.jar;D:\J2EE1.4SDK\lib\
>endorsed\xercesImpl.jar;D:\IntelliJ;D:\jdk1.2.1\src.jar;D:\j2sd
>k1.4.0_02\common\lib\servlet.jar;D:\JDBCDrivers\mysql-connector
>-java-2.0.14\mysql-connector-java-2.0.14-bin.jar;D:\JDBCDrivers
>\db2java.zip;D:\JDBCDrivers\msbase.jar;D:\JDBCDrivers\mssqlserv
>er.jar;D:\JDBCDrivers\msutil.jar;D:\JDBCDrivers\mysql_comp.jar;
>D:\JDBCDrivers\mysql_uncomp.jar;D:\JDBCDrivers\Opta2000.jar;D:\
>JDBCDrivers\ora9\classes12.zip;D:\JDBCDrivers\jtds-0.6-rc1.jar;
>D:\Layouts\TableLayout.jar;D:\jakarta-log4j-1.2.8\dist\lib\log4
>j-1.2.8.jar;F:\jdom-1.0\build\jdom.jar;D:\jpim-0.1\build\jpim.j
>ar;D:\Jacob\jacob.jar;D:\SystemTray\systray.jar;D:\MindIM\lib\c
>ommon\ostermillerutils_1_02_24.jar;F:\commonsProj\commons-httpc
>lient-2.0\commons-httpclient-2.0.jar;F:\commonsProj\commons-log
>ging-1.0.3\commons-logging-api.jar;F:\commonsProj\commons-loggi
>ng-1.0.3\commons-logging.jar;D:\htmlparser1_5\lib\htmllexer.jar
>;D:\htmlparser1_5\lib\htmlparser.jar;D:\htmlparser1_5\src;D:\JU
>nit\junit3.8.1\junit.jar;S:\Mindbridge\lib\commons-logging-api.
>jar;S:\Mindbridge\lib\commons-logging.jar;S:\Mindbridge\lib\com
>mons-httpclient-2.0.jar;S:\Mindbridge\lib\commons-net-1.1.0.jar
>;S:\Mindbridge\lib\commons-vfs-1.0-dev.jar;S:\Mindbridge\lib\in
>forma.jar;S:\Mindbridge\lib\jcifs-0.8.2.jar;S:\Mindbridge\lib\j
>sch-0.1.13.zip;S:\Mindbridge\lib\lucene-1.4-final.jar;S:\Mindbr
>idge\lib\lucene-demos-1.4-final.jar;F:\CvsCheckOut\IntrasmartAP
>I\dist\latest\IntraSmartAPI-dev.jar;D:\xerces-2_5_0\xercesImpl.
>jar;D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xml-apis.
>jar;D:\xerces-2_5_0\xmlParserAPIs.jar;F:\IntelliJ-IDEA-4.5\lib\
>idea_rt.jar com.intellij.rt.execution.application.AppMain 
>TestPlain 0 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - Java version: 
>1.4.2_02 0 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - Java vendor: Sun 
>Microsystems Inc.
>0 [main] DEBUG org.apache.commons.httpclient.HttpClient - Java 
>class path: 
>D:\J2EE1.4SDK\jdk\jre\lib\charsets.jar;D:\J2EE1.4SDK\jdk\jre\li
>b\jce.jar;D:\J2EE1.4SDK\jdk\jre\lib\jsse.jar;D:\J2EE1.4SDK\jdk\
>jre\lib\plugin.jar;D:\J2EE1.4SDK\jdk\jre\lib\plugin_g.jar;D:\J2
>EE1.4SDK\jdk\jre\lib\rt.jar;D:\J2EE1.4SDK\jdk\jre\lib\sunrsasig
>n.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\dnsns.jar;D:\J2EE1.4SDK\jdk
>\jre\lib\ext\ldapsec.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\localeda
>ta.jar;D:\J2EE1.4SDK\jdk\jre\lib\ext\sunjce_provider.jar;D:\J2E
>E1.4SDK\jdk\lib\activation.jar;D:\J2EE1.4SDK\jdk\lib\admin-cli.
>jar;D:\J2EE1.4SDK\jdk\lib\appserv-admin.jar;D:\J2EE1.4SDK\jdk\l
>ib\appserv-assemblytool.jar;D:\J2EE1.4SDK\jdk\lib\appserv-cmp.j
>ar;D:\J2EE1.4SDK\jdk\lib\appserv-ext.jar;D:\J2EE1.4SDK\jdk\lib\
>appserv-jstl.jar;D:\J2EE1.4SDK\jdk\lib\appserv-rt.jar;D:\J2EE1.
>4SDK\jdk\lib\appserv-tags.jar;D:\J2EE1.4SDK\jdk\lib\appserv-upg
>rade.jar;D:\J2EE1.4SDK\jdk\lib\commons-launcher.jar;D:\J2EE1.4S
>DK\jdk\lib\commons-logging.jar;D:\J2EE1.4SDK\jdk\lib\deployhelp
>.jar;D:\J2EE1.4SDK\jdk\lib\dt.jar;D:\J2EE1.4SDK\jdk\lib\htmlcon
>verter.jar;D:\J2EE1.4SDK\jdk\lib\htmlconverter_g.jar;D:\J2EE1.4
>SDK\jdk\lib\j2ee-svc.jar;D:\J2EE1.4SDK\jdk\lib\j2ee.jar;D:\J2EE
>1.4SDK\jdk\lib\jax-qname.jar;D:\J2EE1.4SDK\jdk\lib\jaxr-api.jar
>;D:\J2EE1.4SDK\jdk\lib\jaxr-impl.jar;D:\J2EE1.4SDK\jdk\lib\jaxr
>pc-api.jar;D:\J2EE1.4SDK\jdk\lib\jaxrpc-impl.jar;D:\J2EE1.4SDK\
>jdk\lib\jhall.jar;D:\J2EE1.4SDK\jdk\lib\mail.jar;D:\J2EE1.4SDK\
>jdk\lib\relaxngDatatype.jar;D:\J2EE1.4SDK\jdk\lib\saaj-api.jar;
>D:\J2EE1.4SDK\jdk\lib\saaj-impl.jar;D:\J2EE1.4SDK\jdk\lib\sun-a
>ppserv-ant.jar;D:\J2EE1.4SDK\jdk\lib\tools.jar;D:\J2EE1.4SDK\jd
>k\lib\xsdlib.jar;D:\J2EE1.4SDK\lib\endorsed\dom.jar;D:\J2EE1.4S
>DK\lib\endorsed\servlet-api.jar;D:\J2EE1.4SDK\lib\endorsed\serv
>let.jar;D:\J2EE1.4SDK\lib\endorsed\xalan.jar;D:\J2EE1.4SDK\lib\
>endorsed\xercesImpl.jar;D:\IntelliJ;D:\jdk1.2.1\src.jar;D:\j2sd
>k1.4.0_02\common\lib\servlet.jar;D:\JDBCDrivers\mysql-connector
>-java-2.0.14\mysql-connector-java-2.0.14-bin.jar;D:\JDBCDrivers
>\db2java.zip;D:\JDBCDrivers\msbase.jar;D:\JDBCDrivers\mssqlserv
>er.jar;D:\JDBCDrivers\msutil.jar;D:\JDBCDrivers\mysql_comp.jar;
>D:\JDBCDrivers\mysql_uncomp.jar;D:\JDBCDrivers\Opta2000.jar;D:\
>JDBCDrivers\ora9\classes12.zip;D:\JDBCDrivers\jtds-0.6-rc1.jar;
>D:\Layouts\TableLayout.jar;D:\jakarta-log4j-1.2.8\dist\lib\log4
>j-1.2.8.jar;F:\jdom-1.0\build\jdom.jar;D:\jpim-0.1\build\jpim.j
>ar;D:\Jacob\jacob.jar;D:\SystemTray\systray.jar;D:\MindIM\lib\c
>ommon\ostermillerutils_1_02_24.jar;F:\commonsProj\commons-httpc
>lient-2.0\commons-httpclient-2.0.jar;F:\commonsProj\commons-log
>ging-1.0.3\commons-logging-api.jar;F:\commonsProj\commons-loggi
>ng-1.0.3\commons-logging.jar;D:\htmlparser1_5\lib\htmllexer.jar
>;D:\htmlparser1_5\lib\htmlparser.jar;D:\htmlparser1_5\src;D:\JU
>nit\junit3.8.1\junit.jar;S:\Mindbridge\lib\commons-logging-api.
>jar;S:\Mindbridge\lib\commons-logging.jar;S:\Mindbridge\lib\com
>mons-httpclient-2.0.jar;S:\Mindbridge\lib\commons-net-1.1.0.jar
>;S:\Mindbridge\lib\commons-vfs-1.0-dev.jar;S:\Mindbridge\lib\in
>forma.jar;S:\Mindbridge\lib\jcifs-0.8.2.jar;S:\Mindbridge\lib\j
>sch-0.1.13.zip;S:\Mindbridge\lib\lucene-1.4-final.jar;S:\Mindbr
>idge\lib\lucene-demos-1.4-final.jar;F:\CvsCheckOut\IntrasmartAP
>I\dist\latest\IntraSmartAPI-dev.jar;D:\xerces-2_5_0\xercesImpl.
>jar;D:\xerces-2_5_0\xercesSamples.jar;D:\xerces-2_5_0\xml-apis.
>jar;D:\xerces-2_5_0\xmlParserAPIs.jar;F:\IntelliJ-IDEA-4.5\lib\
>idea_rt.jar
>10 [main] DEBUG org.apache.commons.httpclient.HttpClient - 
>Operating system name: Windows NT 20 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - Operating system 
>architecture: x86 20 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - Operating system 
>version: 4.0 370 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - SUN 1.42: SUN (DSA 
>key/parameter generation; DSA signing; SHA-1, MD5 digests; 
>SecureRandom; X.509 certificates; JKS keystore; PKIX 
>CertPathValidator; PKIX CertPathBuilder; LDAP, Collection 
>CertStores) 370 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - SunJSSE 1.42: Sun 
>JSSE provider(implements RSA Signatures, PKCS12, SunX509 
>key/trust factories, SSLv3, TLSv1) 370 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - SunRsaSign 1.42: 
>SUN's provider for RSA signatures 370 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - SunJCE 1.42: SunJCE 
>Provider (implements DES, Triple DES, AES, Blowfish, PBE, 
>Diffie-Hellman, HMAC-MD5, HMAC-SHA1) 370 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - SunJGSS 1.0: Sun 
>(Kerberos v5) 520 [main] DEBUG 
>org.apache.commons.httpclient.methods.GetMethod - enter 
>GetMethod(String) 520 [main] DEBUG 
>org.apache.commons.httpclient.HttpClient - enter 
>HttpClient.executeMethod(HttpMethod)
>520 [main] DEBUG org.apache.commons.httpclient.HttpClient - 
>enter HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
>550 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- HttpConnection.setSoTimeout(0) 550 [main] DEBUG 
>org.apache.commons.httpclient.HttpConnection - enter 
>HttpConnection.open()
>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.execute(HttpState, HttpConnection)
>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- Execute loop try 1
>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.processRequest(HttpState, HttpConnection)
>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- Attempt number 1 to process request
>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.writeRequest(HttpState, HttpConnection)
>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
>1592 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.generateRequestLine(HttpConnection, 
>String, String, String, String)
>1602 [main] DEBUG httpclient.wire - >> "GET / HTTP/1.1[\r][\n]"
>1602 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.print(String)
>1602 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.write(byte[])
>1612 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.write(byte[], int, int)
>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, 
>HttpConnection)
>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- Adding Host request header
>1612 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.addCookieRequestHeader(HttpState, 
>HttpConnection)
>1642 [main] DEBUG org.apache.commons.httpclient.HttpState - 
>enter HttpState.getCookies()
>1642 [main] DEBUG 
>org.apache.commons.httpclient.cookie.CookieSpec - enter 
>CookieSpecBase.match(String, int, String, boolean, Cookie[])
>1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter 
>HttpMethodBase.addAuthorizationRequestHeader(HttpState, HttpConnection)
>1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter 
>HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState, 
>HttpConnection)
>1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter HttpMethodBase.addProxyConnectionHeader(HttpState, 
>HttpConnection)
>1642 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase 
>- enter 
>HttpMethodBase.addContentLengthRequestHeader(HttpState, HttpConnection)
>1642 [main] DEBUG httpclient.wire - >> "User-Agent: Jakarta 
>Commons-HttpClient/2.0final[\r][\n]"
>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.print(String)
>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.write(byte[])
>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.write(byte[], int, int)
>1642 [main] DEBUG httpclient.wire - >> "Host: www.verisign.com[\r][\n]"
>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.print(String)
>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.write(byte[])
>1642 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.write(byte[], int, int)
>1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.writeLine()
>1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.write(byte[])
>1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.write(byte[], int, int)
>1652 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.flushRequestOutputStream()
>2022 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.close()
>2022 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.closeSockedAndStreams()
>2022 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.close()
>2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.closeSockedAndStreams()
>2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.close()
>2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.closeSockedAndStreams()
>2032 [main] DEBUG org.apache.commons.httpclient.HttpConnection 
>- enter HttpConnection.releaseConnection()
>javax.net.ssl.SSLHandshakeException: 
>sun.security.validator.ValidatorException: No trusted certificate found
>	at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>	at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
>	at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
>	at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
>	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>	at 
>com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
>	at 
>org.apache.commons.httpclient.HttpConnection$WrappedOutputStrea
>m.write(HttpConnection.java:1368)
>	at 
>java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
>	at 
>java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)
>	at 
>org.apache.commons.httpclient.HttpConnection.flushRequestOutput
>Stream(HttpConnection.java:799)
>	at 
>org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpM
>ethodBase.java:2277)
>	at 
>org.apache.commons.httpclient.HttpMethodBase.processRequest(Htt
>pMethodBase.java:2657)
>	at 
>org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethod
>Base.java:1093)
>	at 
>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
>nt.java:675)
>	at 
>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
>nt.java:529)
>	at TestPlain.main(TestPlain.java:46)
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso
>rImpl.java:39)
>	at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho
>dAccessorImpl.java:25)
>	at java.lang.reflect.Method.invoke(Method.java:324)
>	at 
>com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
>Caused by: sun.security.validator.ValidatorException: No 
>trusted certificate found
>	at 
>sun.security.validator.SimpleValidator.buildTrustedChain(Simple
>Validator.java:304)
>	at 
>sun.security.validator.SimpleValidator.engineValidate(SimpleVal
>idator.java:107)
>	at sun.security.validator.Validator.validate(Validator.java:202)
>	at 
>com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTr
>usted(DashoA6275)
>	at 
>com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTr
>usted(DashoA6275)
>	... 22 more
>null
>count = 0, total = 67
>
>Process finished with exit code 0
>
>
>
>
>Thanks in advance.
>Mike Clovis
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: 
>httpclient-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org