Skip to content

Not possible to create cert for quantum-safe algorithm | error "invalid argument" #192

@abcnorio

Description

@abcnorio

Hello,

  • OS Debian bookworm
  • openssh quantum-safe build worked just fine (git from 2026-03-18)
$ openssl --version
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

creating keys works:

$ ./ssh-keygen -t ssh-slhdsapuresha2128f -C "root-PQ@ca.com" -N "" -f rootca-PQ
[...]
$ ./ssh-keygen -t ssh-slhdsapuresha2128f -C "signer-PQ@ca.com" -N "" -f signer-PQ
[...]

does not work:

$ ./ssh-keygen -s rootca-PQ -I signer-cert-PQ@ca.com signer-PQ.pub
Could not upgrade key signer-PQ.pub to certificate: invalid argument

Using a non quantum-safe algorithm everything works:

./ssh-keygen -t ed25519 -C "root@ca.com" -N "" -f rootca-ed25519
[...]
./ssh-keygen -t ed25519 -C "signer@ca.com" -N "" -f signer-ed25519
[...]
./ssh-keygen -s rootca-ed25519 -I signer-cert@ca.com signer-ed25519.pub
Signed user key signer-ed25519-cert.pub: id "signer-cert@ca.com" serial 0 valid forever
$ ls|grep cert
signer-ed25519-cert.pub

This can be reproduced for other algorithms as well, e.g. ssh-falcon512

Thanks!

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