Skip to main content
Participant
May 28, 2024
Question

[SSL: CERTIFICATE_VERIFY_FAILED]

  • May 28, 2024
  • 4 replies
  • 1415 views

Hello,
I'm trying to extract the content of a PDF using the Adobe API (I used the python code offered by Adobe), but I get this error message:

INFO:adobe.pdfservices.operation.internal.pdf_services_helper:Started uploading asset
ERROR:root:Exception encountered while executing operation: description =Exception in fetching access token, requestTrackingId=(<class 'adobe.pdfservices.operation.exception.exceptions.SdkException'>, SdkException('Request could not be completed. Possible cause attached !', (<class 'requests.exceptions.SSLError'>, SSLError(MaxRetryError("HTTPSConnectionPool(host='pdf-services-ue1.adobe.io', port=443): Max retries exceeded with url: /token ( Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))")), <traceback object at 0x000001F91A4C5180>)), <traceback object at 0x000001F91A4C7F40>)

Can anyone explain to me the reason for the problem and how to solve it?
Thanks in advance.

    This topic has been closed for replies.

    4 replies

    Participant
    August 24, 2024

    Please turn off your internet security, somethinglike, kaspersky. It will work.

    Participant
    June 13, 2024

    I got the same error in Python and Node.js example from Adobe. Any solution?

    Raymond Camden
    Community Manager
    Community Manager
    June 13, 2024

    If you switch from the SDK to a direct REST API call, does it work?

    Participant
    June 13, 2024

    I'm getting similar SSL error as well when trying to upload pptx file using the example python script

     

    adobe.pdfservices.operation.exception.exceptions.SdkException: description =Request could not be completed. Possible cause attached!, requestTrackingId=(<class 'requests.exceptions.SSLError'>, SSLError(MaxRetryError("HTTPSConnectionPool(host='dcplatformstorageservice-prod-us-east-1.s3-accelerate.amazonaws.com', port=443): Max retr
    ies exceeded with url: /

     

    LirochAuthor
    Participant
    May 29, 2024

    I tried using curl (rather than python) following the steps described here, but on the first request I got the following error:

    curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.

     

    I would like to manually add the API certificate to the list of allowed certificates, where can I find it?

     

    @Raymond Camden ?

    Raymond Camden
    Community Manager
    Community Manager
    May 29, 2024

    I've got no clue - I've never needed to worry about SSL certs when using Node or Python with the APIs.