Skip to content

SSLError with Python 3.12 and Rocky 8 #60

@Kimahriman

Description

@Kimahriman

Trying to use this with Python 3.12 on Rockylinux 8 with FIPS enabled leads to

ssl.SSLError: [SSL] PEM lib (_ssl.c.####)

This happens on the ssl_context.load_cert_chain. I traced this down to the fact that the temporary pem is formatted with TranditionalOpenSSL (which is PKCS#1) and is I think just too old at this point. Changing the serialization to use PKCS8 instead fixes the issue and is a more modern format

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions