Marat Radchenko created HTTPCLIENT-2060:
-------------------------------------------
Summary: SSLPeerUnverifiedException: Certificate for <X> doesn't
match any of the subject alternative names: [X, Y, Z]
Key: HTTPCLIENT-2060
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2060
Project: HttpComponents HttpClient
Issue Type: Bug
Affects Versions: 4.5.11
Reporter: Marat Radchenko
{code:java}
javax.net.ssl.SSLPeerUnverifiedException: Certificate for <at-git.mail.msk>
doesn't match any of the subject alternative names: [at-git.mail.msk, at-git,
at-registry.mail.msk, at-registry]
at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:507)
~[httpclient-4.5.11.jar:4.5.11]
at
rg.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:437)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
~[httpclient-4.5.11.jar:4.5.11]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
~[httpclient-4.5.11.jar:4.5.11]
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
~[httpclient-4.5.11.jar:4.5.11]{code}
This is the [code that is used to create
HttpClient|https://github.com/bozaro/git-as-svn/blob/1.24.0/src/main/java/svnserver/ext/gitlfs/storage/network/LfsHttpStorage.java#L55-L64]:
{code:java}
public static CloseableHttpClient createHttpClient() {
return HttpClientBuilder.create()
.setDefaultRequestConfig(
RequestConfig.custom()
.setCookieSpec(CookieSpecs.STANDARD)
.build())
.build();
}
{code}
This issue *is present* in httpclient-4.5.11. This *is not present* in
httpclient-4.5.10. It is unknown whether bug is present or not in newer
httpclient versions.
Downstream bug: [https://github.com/bozaro/git-as-svn/issues/335]
I'm not yet sure what exact commit broke this. Most likely it is caused by
HTTPCLIENT-2030.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]