[MS Teams] Call to MS Teams connector is failing with certificate expired error?
Call to MS Team connector is failing with the following error:
0|_real_ti | Error: certificate has expired
0|_real_ti | at TLSSocket.<anonymous> (_tls_wrap.js:1085:38)
0|_real_ti | at emitNone (events.js:86:13)
0|_real_ti | at TLSSocket.emit (events.js:185:7)
0|_real_ti | at TLSSocket._finishInit (_tls_wrap.js:603:8)
0|_real_ti | at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:433:38)
I analyzed the service URL https://smba.trafficmanager.net/amer-client-ss.msg/ and found, its root certificate got expired yesterday and that is the reason, I am not able to do this over the secure socket. Can you please let me know if you have the plan to update the certificates for this service URL endpoint because we don't want to disable the SSL check for the https URL.
Please let me know as per the resolution.
Regards, [email protected]
Hi @gauravnigam1308 - Thanks for reporting.
Can you provide more context about your scenario? For example what are the steps to reproduce this error? Do you have example code? Can you provide screenshot of where you saw the error(s)? Any additional detail would be great. thx
Sure... You can easily reproduce it with botbuilder and ms team extension for bot-builder (Node SDKs: botbuilder and botbuilder-teams) with the following code snippet--- const builder = require('botbuilder'); const teams = require("botbuilder-teams"); const expressRouter = express.Router();
let connector = new builder.ChatConnector({ appId: appId, appPassword: appPassword }); expressRouter.post('/team', connector.listen()); /****
- Router and bot-builder listener for the message sent from Microsoft team
- @type {UniversalBot} */ let bot = new builder.UniversalBot(connector, function (session) { session.send("You said: " + session.message.text); });
The error is getting stdout on the console.
We are having the same issue, but also for Skype. Something has changed this last 24h because yesterday midday (Spain time) it was working fine.
I can confirm @nigamg answer:
You can easily reproduce it with botbuilder and ms team extension for bot-builder.
In our project we get this stack trace:
Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1042:34) at TLSSocket.emit (events.js:159:13) at TLSSocket._finishInit (_tls_wrap.js:639:8)
Yesterday it was working fine :-(
I'm having similar problem on the Skype Channel. I've created an issue on https://github.com/Microsoft/BotBuilder/issues/3959
We are having the same issue on the Skype Channel.
We're investigating this issue now.
Also having this issue now. I am hosting my app through OpenShift, and wasn't sure if it was OpenShift's certificates that were expired. Upon inspection, the certificate was valid, so not sure how it's failing.
You can fix this for the time being by turning off Node's built-in TLS rejection with:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
If you have a lot of users and requests, this isn't really recommended. But for small self-hosted apps where it is internal, this is a good non-permanent solution.
I can confirm having same issue with SSL connections (certificate expired) to smba.trafficmanager.net. Unable to tell if a load balancer issue as we're able to resolve locally but not able to from any servers in AWS us-west-2 (Oregon).
Edit: Seems to resolving correctly now with new certificate.
MS called me to say this is fixed now, had to restart my webapps though. I can confirm this worked.
Hi everyone, can you try again?
We were not able to find any expired certificates, but we rolled the entire set and this resolved the issue for all customers we contacted so far.
Yes, for us is working now again :)
Yes, @PaulDevelter. Our team has confirmed it's working fine again.
I can confirm that after restarting the webapp this issue is now fixed on my chatbot. Thanks guys!
Also working here after a restart. Thanks!
resolved at 12/20/2017 07:48:03 PST
Thanks @konstlut !
working fine after the restart, thank you so much for the prompt resolution, very much appreciated!