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}}].
```

5 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
Comment actions Permalink

I dont know how this has been marked as resolved
very unfortunate.


Got following Error with link by @Yuriy Vinogradov

Nope, can't find it!

It could mean that the URL points to a page that doesn't exist or the URL is correct and you don't have permission to view this content.
0

Please sign in to leave a comment.