Open srinidhiupadhya opened 7 years ago
Hi,
my understanding of the above message is a SSL issue. Is your certificate trusted?
Hi,
Thank you for your comment. Yes my certificate is trusted. I connected to mongo chef. It is working fine. But I couldn't connect to mongo db from pycharm. So I tried to connect it with remote ip and Installed all the required library. it is authenticated and ssl enabled. But everytime I am getting same error.
Thanks,
Hi,
Can anyone help me regarding this issue please?
Thanks
Hi, This could be the ssl connection issue. I was able to connect same configuration in studio 3t.
I installed mongo in one of vm. Through this remote IP i am connecting my mongo db. So I tried to add new mongo db server to it. So I gave proper auth and SSL. But I was getting the below exception.
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=192.168.127.143:27020, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present}, caused by {java.security.cert.CertificateException: No subject alternative names present}}]
So is there any other files to install or can any of you please tell me how can I solve this problem. As I am new to this, it will be very useful for me if anyone could answer it or can I solution if it is already known issue.
Thanks,