Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

[SSH CA] Key Algs with RSA not recognized #53

@cocoon

Description

@cocoon

Is it OK for you that I add issues I find?

No need to do anything, I just thought I could collect what does not work so it can be fixed or looked at in the future.

And I might just try to make quick fixes / PR for it if I get something to work.

Currently not working is to create a SSH CA with RSA key algo, it throws in background at "unwrap" and does not give an error back to the frontend, showing a never ending working state in the button here:

let key = PrivateKey::random(&mut OsRng, alg.as_alg()).unwrap();

Error is:
AlgorithmUnknown

alg is i.e.:
RsaSha512

alg.as_alg() is:
Rsa { hash: Some(Sha512) }

a quick fix to at least catch and return an error to the frontend:
cocoon@b82e188

Image

...

OK found the problem, the "rsa" feature was not enabled for ssh-key, PR is ready:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions