-
Notifications
You must be signed in to change notification settings - Fork 41
Specifying a blank password upon new-cert
still encrypts the .key
file
#44
Comments
new-cert
still encrypts the filenew-cert
still encrypts the .key
file
empty passphrase is still a valid passphrase. |
the message shown says In this case, when you hit enter for an empty passphrase, the key still gets encrypted. With what passphrase ? I don't know, but I know you can't decrypt it with openssl, because it will ask for a minimum of 4 characters. I don't know if it's a constraint by the encryption scheme or only by the openssl UI, but it makes the generated certificates useless in this case. |
Here's a small patch that implements what I mean:
Would that be useful ? |
@abourget It can be encrypted with empty passphrase. I would prefer to fix the print message. |
ok. I see I can export with For consistency with openssl, I would have liked to have the same behavior here too.. I was surprised (in a bad way) when I saw the key was encrypted with a blank passphrase. Why create bad surprises ? Anyway, I've made my points. I'll close this issue until someone wants to pick it up. Thanks |
After rethinking about it, i think it should keep the same convention as openssh one. I will improve it later. |
what about my patch up here ? I stumbled upon this one once again :) |
I can make it a PR if you want. |
Can we please merge this. This would be very useful because Alpine Linux 3.2 x64 doesn't get the |
I'd expect a blank passphrase to not encrypt the
.key
file. Is that a bug or a feature ?The text was updated successfully, but these errors were encountered: