Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to generate ed25519 cert #926

Closed
meilihao opened this issue Aug 27, 2018 · 4 comments · Fixed by #1061
Closed

how to generate ed25519 cert #926

meilihao opened this issue Aug 27, 2018 · 4 comments · Fixed by #1061

Comments

@meilihao
Copy link

meilihao commented Aug 27, 2018

ca-csr.json:

{
  "CN": "TLS CA X3",
  "key": {
    "algo": "ed25519"
  },
  "names": [
    {
      "O": "TLS Group"
    }
  ]
}

generate log:

> ~/t/ed25519 cfssl gencert -initca ca-csr.json | cfssljson -bare ca -
2018/08/27 11:35:12 [INFO] generating a new CA key and certificate from CSR
2018/08/27 11:35:12 [INFO] generate received request
2018/08/27 11:35:12 [INFO] received CSR
2018/08/27 11:35:12 [INFO] generating key: ed25519-256
2018/08/27 11:35:12 [ERROR] failed to process request: {"code":2400,"message":"invalid algorithm"}
{"code":2400,"message":"invalid algorithm"}
Failed to parse input: unexpected end of JSON input
@adbias
Copy link

adbias commented Aug 28, 2018

You can only generate ECDSA and RSA keys.

@meilihao
Copy link
Author

meilihao commented Aug 29, 2018

I found ed25519_cert.pem in boringssl, And openssl 1.1.1 preN openssl x509 -in ed25519_cert.pem -noout -text works.

So cfssl has plan to support it?

@adbias
Copy link

adbias commented Aug 30, 2018

Idk, but it would be awesome a PR.

edit: I found a fork with ed25519, you can make a patch if you want the latest CFSSL.
https://github.com/cjpatton/cfssl

edit2: I found a "recent" commit with ed25519, but idk if they are going to implement it for key generation.
6aeb6e3

@cbroglie
Copy link
Contributor

No plans to add support at the moment, but pull requests are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants