javax.net.ssl.SSLHandshakeException

java.security.cert.CertificateException

Samebug tips1

Import the server certificate into your truststore.


rprp

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web697

  • via Unknown by user12863157,
  • Stack trace

    • javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2000) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:709) at javax.mail.Service.connect(Service.java:386) at javax.mail.Service.connect(Service.java:245) at javax.mail.Service.connect(Service.java:194) at com.bea.wli.sb.transports.email.util.EmailUtil.getTransport(EmailUtil.java:670) at com.bea.wli.sb.transports.email.util.Envelope.send(Envelope.java:134) Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    aldrinlealaldrinleal
    Once,
    rprp
    Once,
    Unknown visitor
    Unknown visitorOnce,
    132 more bugmates