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}}].
```
Please sign in to leave a comment.
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
Here is feature request https://youtrack.jetbrains.com/issue/DBE-10133
The provided feature request link does not work
I dont know how this has been marked as resolved
very unfortunate.
Got following Error with link by @Yuriy Vinogradov
Here is correct URL
https://youtrack.jetbrains.com/issue/DBE-10133