Skip to content

[X509: CERT_ALREADY_IN_HASH_TABLE] cert already in hash table (_ssl.c:2635) #1996

Discussion options

You must be logged in to vote

I also encountered this problem and investigated it.

The CPython SSL module calls the OpenSSL function X509_STORE_ add_cert. When X509_R_CERT_ALREADY_IN_HASH_TABLE appears, before OpenSSL 1.1.1, X509_STORE_ add_cert returns 0 to indicate failure, and since OpenSSL 1.1.1 returns 1 to indicate success.

Solution

  • Upgrade OpenSSL to version 1.1.1 or beyond
  • Recompile Python with upgraded OpenSSL
    • Check the OpenSSL version used in Python
      Python 3.7.2 (defau…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tomchristie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants