Project

General

Profile

Feature #4423

[ext/openssl] Allow encryption for PEM-encoding Elliptic Curve private keys

Added by MartinBosslet (Martin Bosslet) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:35329]

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

ec_pem_pwd.diff (3.37 KB) ec_pem_pwd.diff MartinBosslet (Martin Bosslet), 02/22/2011 08:36 AM
ec_pem_pwd2.diff (4.44 KB) ec_pem_pwd2.diff MartinBosslet (Martin Bosslet), 03/01/2011 07:56 AM

Also available in: Atom PDF