botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[MS Teams] Call to MS Teams connector is failing with certificate expired error?

Open nigs1308 opened this issue 8 years ago • 18 comments

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]

nigs1308 avatar Dec 20 '17 00:12 nigs1308

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

nwhitmont avatar Dec 20 '17 05:12 nwhitmont

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.

nigamg avatar Dec 20 '17 08:12 nigamg

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.

vicenschamorro avatar Dec 20 '17 11:12 vicenschamorro

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 :-(

hinojosachapel avatar Dec 20 '17 11:12 hinojosachapel

I'm having similar problem on the Skype Channel. I've created an issue on https://github.com/Microsoft/BotBuilder/issues/3959

fms-santos avatar Dec 20 '17 13:12 fms-santos

We are having the same issue on the Skype Channel.

sinhlt58 avatar Dec 20 '17 13:12 sinhlt58

We're investigating this issue now.

dandriscoll avatar Dec 20 '17 14:12 dandriscoll

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.

coryshaw1 avatar Dec 20 '17 15:12 coryshaw1

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.

gleuch avatar Dec 20 '17 15:12 gleuch

MS called me to say this is fixed now, had to restart my webapps though. I can confirm this worked.

PaulDevelter avatar Dec 20 '17 15:12 PaulDevelter

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.

dandriscoll avatar Dec 20 '17 15:12 dandriscoll

Yes, for us is working now again :)

shinta115 avatar Dec 20 '17 15:12 shinta115

Yes, @PaulDevelter. Our team has confirmed it's working fine again.

hinojosachapel avatar Dec 20 '17 15:12 hinojosachapel

I can confirm that after restarting the webapp this issue is now fixed on my chatbot. Thanks guys!

fms-santos avatar Dec 20 '17 15:12 fms-santos

Also working here after a restart. Thanks!

coryshaw1 avatar Dec 20 '17 15:12 coryshaw1

resolved at 12/20/2017 07:48:03 PST

nwhitmont avatar Dec 20 '17 15:12 nwhitmont

Thanks @konstlut !

nwhitmont avatar Dec 20 '17 15:12 nwhitmont

working fine after the restart, thank you so much for the prompt resolution, very much appreciated!

nigamg avatar Dec 20 '17 18:12 nigamg