No... But I got a little bit closer. I was trying to set the property after
the server was already started. So I added it to my java arguments as you
suggested and now I can see it *trying* to load my class, but it is failing:
12/09/13 21:56.23: -] Using alternative CFHTTP hostname verifier:
MockHostnameVerifier12/09/13 21:56.23: -] Failed due to
java.lang.IllegalAccessException: Class
com.naryx.tagfusion.cfm.http.cfHttpConnection can not access a member of
class MockHostnameVerifier with modifiers ""Thing is, straight up I don't
know what Im doing - Im kinda just guessing. I created an implementation of
X509HostnameVerifier that looks like this:
*import org.apache.http.conn.ssl.X509HostnameVerifier;*
*import java.security.cert.X509Certificate;*
*import java.io.IOException;*
*import javax.net.ssl.SSLSocket;*
*import javax.net.ssl.SSLSession;*
*import javax.net.ssl.SSLException;*
*
*
*class MockHostnameVerifier implements X509HostnameVerifier {*
*
*
* @Override*
* public void verify(String host, SSLSocket ssl) throws IOException {*
* // Do nothing*
* }*
*
*
* @Override*
* public void verify(String host, X509Certificate cert) throws
SSLException {*
* //Do nothing*
* }*
*
*
* @Override*
* public void verify(String host, String[] cns, String[] subjectAlts)
throws SSLException {*
* //Do nothing*
* }*
*
*
* @Override*
* public boolean verify(String s, SSLSession sslSession) {*
* return true; *
* }*
*
*
*}*
It compiled it, put the class in a jar file, and added it the WEB-INF/lib.
Is that the general idea?
I first tried to extend it rather than implement it... But the compiler
complained X509HostnameVerifier was an interface - most of the examples I
see on the web though make it look like it is an actual class. I don't know
if Im doing this right or not.
Heath
On Thursday, September 12, 2013 9:56:02 PM UTC-5, Alan Williamson wrote:
>
> Did that not work?
>
> -Dcom.naryx.cfm.http.X509HostnameVerifier=yourname.domain.com
>
>
>
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.