mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 05:26:03 +03:00
[GH-ISSUE #127] ecdsa key support doesn't seem to be compatible with golang 1.11.5 x509 libs #75
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @erikh on GitHub (Feb 4, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/127
I have the following code in a go program:
mkcert commandline:
Error message from the above code:
I'm not a crypto guy but that code works with golang's generate_cert and even has a test suite designed around that tool. This code typically works with other keys; just not sure what this means and how I can fix it.
Maybe it's me and I'm sorry if I wasted your time, but figured it was worth trying anyway to see if it was the tool. I really like it so far! Desperately needed. Please keep it up.
@erikh commented on GitHub (Feb 4, 2019):
figured it out; if I'm understanding right, you generate PKCS#8 formatted and those calls work on SEC1 format; I was able to adapt my code to manage both. Anyways, I'll leave this open if you want to deal with those too, but otherwise I got it worked out on my end.
@FiloSottile commented on GitHub (Feb 5, 2019):
Yeah, in Go you want to use
x509.ParsePKCS8PrivateKeyinstead ofx509.ParseECPrivateKey.I opened golang/go#30094 to improve the error message in the standard library.