I am using windows 10 OS
Please check the below code snippet i tried to authenticate with certificate
i also tried the following by adding 2 backslash:
trustStorePath: ‘C:\Users\AVVM4J744\Desktop\couchbase\poc\ca.pem’
@desh_naik I am not an expert in the SDK area but perhaps the form of the argument to couchbase.connect that you are using is not aligned with the form the SDK version is expecting. E.g. this (Node.js v4.1) shows the trustStorePath is a field in the same object that contains username and password fields (i.e. not under a “security:” subobject):
and if i give relative path to ca.pem as below it works
security: {
trustStorePath: ‘ca.pem’,
}
But if i try to give absolute path as below it does not work
security: {
trustStorePath: ‘C:\Users\AVVM4J744\Desktop\couchbase\poc\ca.pem’,
}
I want to know how can i make it work with absolute path
I was trying to authenticate with a certificate and followed the code snippet you provided, but I was still having trouble. I started to suspect that the issue might be with the certificate itself, so I checked the expiration date and sure enough, it had expired. I renewed the certificate and that seemed to do the trick. Just a suggestion, you might want to check the expiration date of your certificate to see if that’s the issue. Also, I came across an article on windows 10 sale reddit while researching this issue. They mentioned a way to get a cheap windows key, which I found really helpful. If you haven’t already, you might want to check it out.