com.mongodb.MongoSocketWriteException: Exception sending message

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • can't call SSL web service
    via Stack Overflow by grep
    ,
  • Keytool create a trusted self signed certificate
    via by Unknown author,
  • Simple Java Web Service client over HTTPS
    via Stack Overflow by user68600
    ,
    • com.mongodb.MongoSocketWriteException: Exception sending message at com.mongodb.connection.InternalStreamConnection.translateWriteException(InternalStreamConnection.java:462)[mongo-java-driver-3.2.1.jar:na] at com.mongodb.connection.InternalStreamConnection.sendMessage(InternalStreamConnection.java:205)[mongo-java-driver-3.2.1.jar:na] at com.mongodb.connection.CommandHelper.sendMessage(CommandHelper.java:89)[mongo-java-driver-3.2.1.jar:na] at com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32)[mongo-java-driver-3.2.1.jar:na] at com.mongodb.connection.InternalStreamConnectionInitializer.initializeConnectionDescription(InternalStreamConnectionInitializer.java:83)[mongo-java-driver-3.2.1.jar:na] at com.mongodb.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:43)[mongo-java-driver-3.2.1.jar:na] at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)[mongo-java-driver-3.2.1.jar:na] at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:128)[mongo-java-driver-3.2.1.jar:na] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_101] Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: KeyUsage does not allow key encipherment at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)[na:1.8.0_101] at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)[na:1.8.0_101] at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)[na:1.8.0_101] at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)[na:1.8.0_101] at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)[na:1.8.0_101] at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)[na:1.8.0_101] at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)[na:1.8.0_101] at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)[na:1.8.0_101] at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)[na:1.8.0_101] at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)[na:1.8.0_101] at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747)[na:1.8.0_101] at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)[na:1.8.0_101] at com.mongodb.connection.SocketStream.write(SocketStream.java:75)[mongo-java-driver-3.2.1.jar:na] at com.mongodb.connection.InternalStreamConnection.sendMessage(InternalStreamConnection.java:201)[mongo-java-driver-3.2.1.jar:na] ... 7 more Caused by: sun.security.validator.ValidatorException: KeyUsage does not allow key encipherment at sun.security.validator.EndEntityChecker.checkTLSServer(EndEntityChecker.java:264)[na:1.8.0_101] at sun.security.validator.EndEntityChecker.check(EndEntityChecker.java:141)[na:1.8.0_101] at sun.security.validator.Validator.validate(Validator.java:264)[na:1.8.0_101] at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)[na:1.8.0_101] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)[na:1.8.0_101] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)[na:1.8.0_101] at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)[na:1.8.0_101] ... 16 more

    Users with the same issue

    Unknown visitor1 times, last one,
    eti22
    eti229 times, last one,
    Dore
    Dore1 times, last one,
    Unknown visitor1 times, last one,
    kid
    kid1283 times, last one,
    5 more bugmates