Azure-Samples / ms-identity-python-webapp

A Python web application calling Microsoft graph that is secured using the Microsoft identity platform
MIT License
291 stars 138 forks source link

SSL Error #33

Closed dfoley84-zz closed 4 years ago

dfoley84-zz commented 4 years ago

What would be causing the following issue?

SSLError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /common/v2.0/.well-known/openid-configuration (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

rayluo commented 4 years ago

Is this issue reproducible?

The clue might be in this part of the error message: SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),). Among first several search results, I found this post might be useful here.

dfoley84-zz commented 4 years ago

Configured a Self Signed Cert.

rayluo commented 4 years ago

Glad that you found your solution. Out of curiosity, wasn't you trying to access login.microsoftonline.com, according to the error message? Why would that Microsoft-owned website require you to configure a self-signed cert?