-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to verify the first certificate #141
Comments
Hi everyone, I find a solution which seems good but it's don't work. but : |
I find the solution. My problem : After, you should enter in shell : Normaly, the probleme is solve. But you can try that if it's not the case in the code .js: const trustedCa = [ https.globalAgent.options.ca = []; or in the shell command and you can test the connexion with (in the code .js): const req = https.request(options, (res) => { res.on('data', (d) => { req.on('error', (e) => { SOURCE : |
Hi everyone,
I use node-ews to send message with ExchangeWeb Service but i have a problem.
When i use my 4G i can send message (because certificate is allow by default)
But i when i want use the network of my company, i can't. I read this error (unable to verify the first certificate).
I search and i found some solution like that : process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
but it's a ungly solution. I want solve the problem properly. I have the certificate of my company in .crt.
My question : Do you have implemente a function to pass in parameter the certificate ? or do you have an other solution ?
I'm French, sorry for my french expression.
Thank to developpe this library, it's very helpfull.
Yohann
The text was updated successfully, but these errors were encountered: