javax.net.ssl.SSLPeerUnverifiedException: Host name 'test.example' does not match the certificate subject provided by the peer (CN=example, ...)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by HknLof
, 1 year ago
Host name 'test.example' does not match the certificate subject provided by the peer (CN=example, ...)
via Stack Overflow by reza ramezani matin
, 6 months ago
Certificate for <127.0.0.1> doesn't match any of the subject alternative names: []
via ne.jp by Unknown author, 1 year ago
Host name 'localhost' does not match the certificate subject provided by the peer (CN=e611e15f9c9d)
via ne.jp by Unknown author, 2 years ago
Host name 'localhost' does not match the certificate subject provided by the peer (CN=e611e15f9c9d)
via ne.jp by Unknown author, 1 year ago
Host name 'localhost' does not match the certificate subject provided by the peer (CN=e611e15f9c9d)
via Stack Overflow by Unknown author, 1 year ago
Host name 'XXXXXXXXX' does not match the certificate subject provided by the peer (CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US)
javax.net.ssl.SSLPeerUnverifiedException: Host name 'test.example' does not match the certificate subject provided by the peer (CN=example, ...)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.