You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm getting a SSLV3_ALERT_HANDSHAKE_FAILURE when trying to use my pfx certificate and make a request to a site. I tried a couple of ssl_protocol without success.
This is my code:
defdownload_a_file(date: pendulum.DateTime):
# URL to download the PDF file.url=f"https://fakesite.com/portalDownload/invoices/file?date={date.format("YYYYMMDD")}&format=pdf"pfx_path="C:/mycertificate.pfx"pfx_password="FakePass123"withSession() ass:
s.mount(
"https://fakesite.com",
Pkcs12Adapter(pkcs12_filename=pfx_path, pkcs12_password=pfx_password),
)
response=s.get(url)
ifresponse.status_code==200:
context.log.info("Successfully downloaded the PDF file.")
returnresponse.contentelse:
context.log.error("Failed to download the PDF file.")
Hi, I'm getting a SSLV3_ALERT_HANDSHAKE_FAILURE when trying to use my pfx certificate and make a request to a site. I tried a couple of ssl_protocol without success.
This is my code:
I'm on Windows 11, python 3.12 using requests_pkcs12 version 1.25.
Using my certificate in Chrome, Edge or Firefox is working when login in the site.
This is what I'm getting from Chrome Developer Tools->Security tab.
Am I doing something wrong?
Thank you,
The text was updated successfully, but these errors were encountered: