Prakash Nath Jha
12/24/2024, 8:40 AMPrakash Nath Jha
12/24/2024, 8:42 AM<http://graph.microsoft.com|graph.microsoft.com>
endpoint which is outside my networkPrakash Nath Jha
12/24/2024, 8:43 AMPrakash Nath Jha
12/24/2024, 8:44 AM--https-keystore
option. I don't want to proxy over HTTP because then I will need to disable cert verification in my client app.Prakash Nath Jha
12/24/2024, 8:48 AM<http://graph.microsoft.com|graph.microsoft.com>
will necessarily need to be on HTTPS because HTTP is not supported. Anyways this part of the communication is not my major concern because my usecase is that I want WM to act as a mock server for <http://graph.microsoft.com|graph.microsoft.com>
so the the API requests to microsoft needs to be intercepted by WM and return mock response.Prakash Nath Jha
12/24/2024, 8:50 AMrequests.exceptions.SSLError: HTTPSConnectionPool(host='<http://graph.microsoft.com|graph.microsoft.com>', port=443): Max retries exceeded with url: /v1.0/organization?$top=999 (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for '<http://graph.microsoft.com|graph.microsoft.com>'. (_ssl.c:1000)")))
Prakash Nath Jha
12/24/2024, 8:53 AMrequests
lib in python is trying to establish a TLS connection with <http://graph.microsoft.com|graph.microsoft.com>
which is failing since WM is not running with the cert of <http://graph.microsoft.com|graph.microsoft.com>
.Prakash Nath Jha
12/24/2024, 8:54 AM<http://graph.microsoft.com|graph.microsoft.com>
using WM cert (this is obviously failing)Prakash Nath Jha
12/24/2024, 8:55 AM<http://graph.microsoft.com|graph.microsoft.com>
.Prakash Nath Jha
12/24/2024, 8:56 AMPrakash Nath Jha
12/24/2024, 9:05 AMCONNECT
being used
* CONNECT tunnel: HTTP/1.1 negotiated
* allocate connect buffer
* Establish HTTP proxy tunnel to <http://graph.microsoft.com:443|graph.microsoft.com:443>
> CONNECT <http://graph.microsoft.com:443|graph.microsoft.com:443> HTTP/1.1
> Host: <http://graph.microsoft.com:443|graph.microsoft.com:443>
> User-Agent: curl/8.5.0
> Proxy-Connection: Keep-Alive
Which is again something I did not expect. Isn't WM was suppoed to terminate the TLS from Client and start a new TLS session with the Target ?Prakash Nath Jha
12/24/2024, 12:53 PM