Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
273 views
in Technique[技术] by (71.8m points)

Having problems with Microsoft teams new webhook

I had a webhook i was using from my ansible playbook to send notification to one of our Microsoft teams channel.The webhook URL was like this

"https://outlook.office.com/webhook/*".I got a notification on teams that i need to update to a new version on the webhook which is now this " https://organization-name.webhook.office.com/webhookb/*" .After i updated to the new webhook and tested on my ansible play book, i got the following error

"msg": "Failed to validate the SSL certificate for organization-namer.webhook.office.com:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine (the python executable used (/usr/bin/python) is version: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]) or you can install the urllib3, pyOpenSSL, ndg-httpsclient, and pyasn1 python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg was: hostname 'organization-name.webhook.office.com' doesn't match either of '.internal.outlook.com', '.outlook.com', 'outlook.com', 'office365.com', '.office365.com', '.outlook.office365.com', '.office.com', 'outlook.office.com', 'substrate.office.com', 'attachment.outlook.live.net', 'attachment.outlook.office.net', 'attachment.outlook.officeppe.net', 'attachments.office.net', '.clo.footprintdns.com', '.nrb.footprintdns.com', 'ccs.login.microsoftonline.com', 'ccs-sdf.login.microsoftonline.com', 'substrate-sdf.office.com', 'attachments-sdf.office.net', '.live.com', 'mail.services.live.com', 'hotmail.com', '*.hotmail.com'."}

From the error , it shows that Microsoft have not added the *.webhook.com domain to the domains names defined in the SSL certificate.

My question, how do i go about this?..any input will be appreciated. Thanks

question from:https://stackoverflow.com/questions/65905190/having-problems-with-microsoft-teams-new-webhook

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Figured it has to do with python version. Upgraded my python version to 2.7.5 and i was good to go. Thanks


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...