javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:450)
This exception happens when the client cannot validate the certificate sent by the server during handshaking.
To fix this problem
1. If you are using a self-signed certificate, get the certificate from the server and click HERE to see the steps and sample code to make it work. If a certificate is not issued by any of the Certificate Authorities (CA), it is a self-signed certificate.
2. Check if your certificate is expired.
3. The client is using an old encryption protocol that is not supported by the server. You can force the client to use the TLSv1.2 protocol.
SSLContext sc = SSLContext.getInstance("TLSv1.2");
at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:450)
This exception happens when the client cannot validate the certificate sent by the server during handshaking.
To fix this problem
1. If you are using a self-signed certificate, get the certificate from the server and click HERE to see the steps and sample code to make it work. If a certificate is not issued by any of the Certificate Authorities (CA), it is a self-signed certificate.
2. Check if your certificate is expired.
3. The client is using an old encryption protocol that is not supported by the server. You can force the client to use the TLSv1.2 protocol.
SSLContext sc = SSLContext.getInstance("TLSv1.2");
-----------------------------------------------------------------------------------------------------------------
Watch the blessing and loving online channel: SupremeMasterTV live
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.
No comments:
Post a Comment