How can i connect mongodb using self signed certificate with datagrip

Answered

Hi. 

I'm using datagrip with mongodb(AWS DocumentDB via ssh tunnel).

Moving from Robomongo to Datagrip 2019.3, But I can't connect cause datagrip require ca, key, crt files.

This is robo mongo settings. they are no require ca files.



what can i do?

```
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:57791, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake}, caused by {java.io.EOFException: SSL peer shut down incorrectly}}].
```

3 comments
Comment actions Permalink

Hello,

You can export your certificate from Keychain  https://www.racf.bnl.gov/docs/howto/grid/osxcertmgmt

Or you can create new certificate files using this script https://gist.github.com/exAspArk/f738f0771e2675e7f4c3b5d11403efd8

 

0
Comment actions Permalink

The provided feature request link does not work

1

Please sign in to leave a comment.