-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
Check account and cert keys for strength #156
Conversation
rsaKey, ok := key.(*rsa.PublicKey) | ||
if !ok { | ||
if jwk, ok := key.(jose.JsonWebKey); ok && jwk.Rsa != nil { | ||
rsaKey = jwk.Rsa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to go ahead and call a new method like GoodKeyRsa() here and move the below out, and make a stub for GoodKeyEcc() that returns err.
I'm good with this merging as is if you open Issues for the two comments above, or resolve them before merging. Overall, looks good to me! |
ea457f7
to
0882e34
Compare
Conflicts: ca/certificate-authority.go core/good_key.go core/good_key_test.go
Done. |
Check account and cert keys for strength
All looks good; merging. |
Fixes #103
Fixes #116