Skip to content

PKCS#1 support #760

@apawlucz-cisco

Description

@apawlucz-cisco

Hello!

When I try to start the embedded server using PKCS#1 formatted PEM certificates like this:

server = Server(
    app,
    address="0.0.0.0",
    port=8000,
    interface=Interfaces.ASGI,
    ssl_cert=self.cert_file_path(),
    ssl_key=self.key_file_path(),
    ssl_key_password=<password>,
)

The server crashes with:

thread '<unnamed>' (127691) panicked at src/tls.rs:76:22:

I tried the same, but using PKCS#8 format - it works fine.

Is it deliberate decision not to support PKCS#1 format? I do understand PKCS#1 is somewhat legacy, though I did not found any information whether granian does or does not support PKCS#1 by design.

Thank you!

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