Skip to content

Error "Cannot read key length from CSR" when using ED25519 key #6371

Open
@metachris

Description

@metachris

Latest acme.sh is giving this error when using a CSR signed with an ED25519 key.

acme.sh --signcsr --csr csr.pem --standalone
[Mon May 26 07:35:32 UTC 2025] Cannot read key length from CSR: csr.pem

Here's steps to reproduce:

# Create private key
openssl genpkey -algorithm ed25519 -out key.pem

# Create TLS cert
openssl req -noenc -x509 -key key.pem -out cert.pem -sha256 -days 90 -nodes -subj "/O=BuilderNet/CN=foo.test.com"

# Create CSR from cert
openssl x509 -x509toreq -signkey key.pem -in cert.pem -out csr.pem

# Show CSR details
openssl req -in csr.pem -text -noout

# Use acme.sh to do the ACME dance and get trusted cert chain
acme.sh --signcsr --csr csr.pem --standalone

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