Skip to content

[Bug/request] Add -traditional to openssl genrsa command if using openssl3 #6636

@donmor

Description

@donmor

Several issues reporting Only RSA or EC key is supported, and I finally found what is wrong:

acme.sh generates CA private key by running openssl genrsa 2048 and use this key later on. It checks if header string -----BEGIN RSA PRIVATE KEY----- is in the key file, which should be PKCS#1 format. However, openssl3 now use PKCS#8 by default (using header string -----BEGIN PRIVATE KEY-----), unless -traditional is specified.

Related: #146 , #1581 , #1932 , #3659 , #5104 , #5201 , etc.

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