Feature #4423
[ext/openssl] Allow encryption for PEM-encoding Elliptic Curve private keys
Description
=begin
There has already been some #if 0-excluded code that would actually
take care of this, but it has not been implemented yet. The attached
patch allows to encrypt PEM-encoded private keys, Cipher and password
are ignored in the case of public keys (rather than raising an error).
The motivation for this patch is that it would provide uniform behavior
of all three public key systems supported in Ruby, RSA, DSA (who already
support PEM encryption) and now also Elliptic Curve. RDoc has been
supplemented.
Regards,
Martin
=end
Files
Associated revisions
Thu May 12 08:01:14 2011 Martin Bosslet Martin.Bosslet@googlemail.com
* ext/openssl/ossl_pkey_ec.c: Allow encryption when PEM-encoding Elliptic Curve private keys. [ruby-core:35329] [Bug #4423]
Previous revision: 31525
Thu May 12 08:01:14 2011 Martin Bosslet Martin.Bosslet@googlemail.com
* ext/openssl/ossl_pkey_ec.c: Allow encryption when PEM-encoding Elliptic Curve private keys. [ruby-core:35329] [Bug #4423]
Previous revision: 31525
Thu May 12 08:01:14 2011 Martin Bosslet Martin.Bosslet@googlemail.com
* ext/openssl/ossl_pkey_ec.c: Allow encryption when PEM-encoding Elliptic Curve private keys. [ruby-core:35329] [Bug #4423]
Previous revision: 31525
Thu May 12 08:01:14 2011 Martin Bosslet Martin.Bosslet@googlemail.com
* ext/openssl/ossl_pkey_ec.c: Allow encryption when PEM-encoding Elliptic Curve private keys. [ruby-core:35329] [Bug #4423]
Previous revision: 31525
Thu May 12 08:01:14 2011 Martin Bosslet Martin.Bosslet@googlemail.com
* ext/openssl/ossl_pkey_ec.c: Allow encryption when PEM-encoding Elliptic Curve private keys. [ruby-core:35329] [Bug #4423]
Previous revision: 31525
Thu May 12 08:01:14 2011 Martin Bosslet Martin.Bosslet@googlemail.com
* ext/openssl/ossl_pkey_ec.c: Allow encryption when PEM-encoding Elliptic Curve private keys. [ruby-core:35329] [Bug #4423]
Previous revision: 31525
History
Updated by naruse (Yui NARUSE) almost 9 years ago
- Status changed from Open to Assigned
- Assignee set to nahi (Hiroshi Nakamura)
=begin
=end
Updated by MartinBosslet (Martin Bosslet) almost 9 years ago
- File ec_pem_pwd2.diff ec_pem_pwd2.diff added
=begin
Added support for PEM decryption in EC#initialize,
to be consistent with DSA and RSA.
Regards,
Martin
=end
Updated by MartinBosslet (Martin Bosslet) over 8 years ago
- Assignee changed from nahi (Hiroshi Nakamura) to MartinBosslet (Martin Bosslet)
Updated by Anonymous over 8 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r31526.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
Thu May 12 08:01:14 2011 Martin Bosslet Martin.Bosslet@googlemail.com
* ext/openssl/ossl_pkey_ec.c: Allow encryption when PEM-encoding Elliptic Curve private keys. [ruby-core:35329] [Bug #4423]
Previous revision: 31525
Thu May 12 08:01:14 2011 Martin Bosslet Martin.Bosslet@googlemail.com
Previous revision: 31525
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e