bdw429s
07/27/2023, 4:47 PM127.0.0.1 but I'm testing a site on <http://site1.com|site1.com> (local host file entries), then I can't find a way to get around this Lucee error from cfhttp
Error: Certificate for <site1.com> doesn't match any of the subject alternative names: [127.0.0.1]I've found several hits on Google suggesting the following Java system property, but it doesn't seem to help
-Djdk.internal.httpclient.disableHostnameVerification=true
Has anyone ever worked around this?bdw429s
07/27/2023, 4:48 PMzackster
07/27/2023, 4:49 PMbdw429s
07/27/2023, 4:49 PMzackster
07/27/2023, 4:50 PMbdw429s
07/27/2023, 4:50 PMbdw429s
07/27/2023, 4:51 PMlucee.runtime.exp.NativeException: Certificate for <site1.com> doesn't match any of the subject alternative names: [127.0.0.1]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:507)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:437)
at lucee.runtime.net.http.sni.SSLConnectionSocketFactoryImpl.createLayeredSocket(SSLConnectionSocketFactoryImpl.java:36)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
at lucee.runtime.net.http.sni.DefaultHttpClientConnectionOperatorImpl.connect(DefaultHttpClientConnectionOperatorImpl.java:26)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at lucee.runtime.tag.Executor4.execute(Http.java:1916)
at lucee.runtime.tag.Executor4.run(Http.java:1903)
at lucee.commons.lang.PageContextThread.run(PageContextThread.java:25)
Caused by: javax.net.ssl.SSLPeerUnverifiedException: Certificate for <site1.com> doesn't match any of the subject alternative names: [127.0.0.1]
... 17 morezackster
07/27/2023, 4:51 PMbdw429s
07/27/2023, 4:51 PMbdw429s
07/27/2023, 4:52 PMbdw429s
07/27/2023, 4:52 PMbdw429s
07/27/2023, 4:53 PMzackster
07/27/2023, 4:53 PMdswitzer
07/27/2023, 4:53 PMbdw429s
07/27/2023, 4:54 PMbdw429s
07/27/2023, 4:54 PMbdw429s
07/27/2023, 4:54 PMbdw429s
07/27/2023, 4:54 PMbdw429s
07/27/2023, 4:54 PMdswitzer
07/27/2023, 4:58 PMdswitzer
07/27/2023, 4:59 PMzackster
07/27/2023, 5:02 PMbdw429s
07/27/2023, 5:19 PMI'm not seeing a JVM argument that will control the behavior of the Apache HttpClient.Yeah, me neither 😕
foundeo
bdw429s
07/27/2023, 5:25 PMfoundeo
bdw429s
07/27/2023, 5:26 PMfoundeo
bdw429s
07/27/2023, 5:27 PMbdw429s
07/27/2023, 5:27 PMdswitzer
07/27/2023, 5:29 PMfoundeo
bdw429s
07/27/2023, 5:30 PMbdw429s
07/27/2023, 5:30 PMbdw429s
07/27/2023, 6:01 PMbdw429s
07/27/2023, 6:02 PMfoundeo
bdw429s
07/27/2023, 6:06 PM