<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Disable Certificate Validation in Java SSL Connections</title> <atom:link href="http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/feed/" rel="self" type="application/rss+xml" /><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disable-certificate-validation-in-java-ssl-connections</link> <description>Thoughts on Software Engineering</description> <lastBuildDate>Fri, 03 Feb 2012 18:06:16 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Ciekawostki r&#243;żne &#171; Wiadomości o technologiach IT</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-2042</link> <dc:creator>Ciekawostki r&#243;żne &#171; Wiadomości o technologiach IT</dc:creator> <pubDate>Fri, 27 Jan 2012 14:42:16 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-2042</guid> <description>[...] przejść do strony z wątpliwym (niezaufanym) certyfikatem SSL &#8211; http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/ – w [...]</description> <content:encoded><![CDATA[<p>[...] przejść do strony z wątpliwym (niezaufanym) certyfikatem SSL &#8211; <a
href="http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/" rel="nofollow">http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/</a> – w [...]</p> ]]></content:encoded> </item> <item><title>By: Mikkel Flindt Heisterberg</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1922</link> <dc:creator>Mikkel Flindt Heisterberg</dc:creator> <pubDate>Tue, 10 Jan 2012 16:08:18 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1922</guid> <description>Sweet - just what I needed - thank you. Only thing I needed to add was a permission in my java.policy file like so:
permission javax.net.ssl.SSLPermission &quot;setHostnameVerifier&quot;;</description> <content:encoded><![CDATA[<p>Sweet &#8211; just what I needed &#8211; thank you. Only thing I needed to add was a permission in my java.policy file like so:<br
/> permission javax.net.ssl.SSLPermission &#8220;setHostnameVerifier&#8221;;</p> ]]></content:encoded> </item> <item><title>By: How to read the file size of a document served at an HTTP/S URL using Java &#171; Talking with a Lisp</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1802</link> <dc:creator>How to read the file size of a document served at an HTTP/S URL using Java &#171; Talking with a Lisp</dc:creator> <pubDate>Sun, 04 Dec 2011 17:04:44 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1802</guid> <description>[...] I actually disabled the HTTPS certificate check by using the method described in this nifty blog: http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/. In actual production use, however, HTTPS URLs are handled by using the actual certificates [...]</description> <content:encoded><![CDATA[<p>[...] I actually disabled the HTTPS certificate check by using the method described in this nifty blog: <a
href="http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/" rel="nofollow">http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/</a>. In actual production use, however, HTTPS URLs are handled by using the actual certificates [...]</p> ]]></content:encoded> </item> <item><title>By: Madhu</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1378</link> <dc:creator>Madhu</dc:creator> <pubDate>Thu, 27 Oct 2011 16:32:13 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1378</guid> <description>This is very helpful, it worked perfectly. The one change I did was making these two calls on the connection instance (instead of static calls)httpsConnection.setSSLSocketFactory(sc.getSocketFactory());
httpsConnection.setHostnameVerifier(allHostsValid);</description> <content:encoded><![CDATA[<p>This is very helpful, it worked perfectly. The one change I did was making these two calls on the connection instance (instead of static calls)</p><p>httpsConnection.setSSLSocketFactory(sc.getSocketFactory());<br
/> httpsConnection.setHostnameVerifier(allHostsValid);</p> ]]></content:encoded> </item> <item><title>By: How to make Apache Commons HttpClient 3.1 ignore HTTPS certificate invalidity? &#124; Gravity Layouts</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1238</link> <dc:creator>How to make Apache Commons HttpClient 3.1 ignore HTTPS certificate invalidity? &#124; Gravity Layouts</dc:creator> <pubDate>Fri, 07 Oct 2011 08:50:58 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1238</guid> <description>[...] to a HTTPS server from Java and ignore the validity of the security certificate as well as Disable Certificate Validation in Java SSL Connections, but the accepted answer to the first is for HttpClient 4.0 (unfortunately I cannot upgrade, unless [...]</description> <content:encoded><![CDATA[<p>[...] to a HTTPS server from Java and ignore the validity of the security certificate as well as Disable Certificate Validation in Java SSL Connections, but the accepted answer to the first is for HttpClient 4.0 (unfortunately I cannot upgrade, unless [...]</p> ]]></content:encoded> </item> <item><title>By: kaz</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1149</link> <dc:creator>kaz</dc:creator> <pubDate>Thu, 15 Sep 2011 18:05:28 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1149</guid> <description>It works ... I found the issue I was having ... it was in an old script that was being used to run the client. ;-)  it was setting the command line parameter: -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol ... which apparently did not recognize my hostname verifier.  Thx for the response.JFYI ... all that is needed when using JAX-WS is:HttpsURLConnection.setDefaultHostnameVerifier( new HostnameVerifier() {
public boolean verify(String urlHostName, SSLSession session) {
log.debug( &quot;Warning: URL Host: &quot; + urlHostName + &quot; vs. &quot; + session.getPeerHost() );
return true;
}
} );</description> <content:encoded><![CDATA[<p>It works &#8230; I found the issue I was having &#8230; it was in an old script that was being used to run the client. <img
src='http://www.nakov.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> it was setting the command line parameter: -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol &#8230; which apparently did not recognize my hostname verifier.  Thx for the response.</p><p>JFYI &#8230; all that is needed when using JAX-WS is:</p><p>HttpsURLConnection.setDefaultHostnameVerifier( new HostnameVerifier() {<br
/> public boolean verify(String urlHostName, SSLSession session) {<br
/> log.debug( &#8220;Warning: URL Host: &#8221; + urlHostName + &#8221; vs. &#8221; + session.getPeerHost() );<br
/> return true;<br
/> }<br
/> } );</p> ]]></content:encoded> </item> <item><title>By: nakov</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1148</link> <dc:creator>nakov</dc:creator> <pubDate>Thu, 15 Sep 2011 11:17:09 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1148</guid> <description>I have no idea. It worked at the time it was written. Now we have newer Java versions that could possibly work differently.</description> <content:encoded><![CDATA[<p>I have no idea. It worked at the time it was written. Now we have newer Java versions that could possibly work differently.</p> ]]></content:encoded> </item> <item><title>By: kaz</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1147</link> <dc:creator>kaz</dc:creator> <pubDate>Thu, 15 Sep 2011 03:45:37 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-1147</guid> <description>Is this supposed to work when running the client from the command line?  I have implemented this but I am still receiving the same error.  You have any idea what may be happening?</description> <content:encoded><![CDATA[<p>Is this supposed to work when running the client from the command line?  I have implemented this but I am still receiving the same error.  You have any idea what may be happening?</p> ]]></content:encoded> </item> <item><title>By: nakov</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-694</link> <dc:creator>nakov</dc:creator> <pubDate>Sun, 30 Jan 2011 15:53:40 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-694</guid> <description>I don&#039;t know. You could test it in Java ME environment, of course.</description> <content:encoded><![CDATA[<p>I don&#8217;t know. You could test it in Java ME environment, of course.</p> ]]></content:encoded> </item> <item><title>By: Amer</title><link>http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-693</link> <dc:creator>Amer</dc:creator> <pubDate>Fri, 28 Jan 2011 23:27:53 +0000</pubDate> <guid
isPermaLink="false">http://url/2009/07/16/disable-certificate-validation-in-java-ssl-connections/#comment-693</guid> <description>Can this code be used in j2me?Thanks</description> <content:encoded><![CDATA[<p>Can this code be used in j2me?</p><p>Thanks</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/3 queries in 0.001 seconds using disk: basic
Object Caching 506/506 objects using disk: basic

Served from: www.nakov.com @ 2012-02-04 20:26:11 -->
