diff options
author | Zachary Scott <e@zzak.io> | 2016-02-02 21:15:51 +0900 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2016-02-02 21:15:51 +0900 |
commit | 7ce811a4246f1452ce9d093a72e6cc5cccff50ff (patch) | |
tree | b62f5097b6538177b85660de532898908c926b4b /ext/openssl | |
parent | 6cbbbb6674632da29b09b420d10f03d36b1a880a (diff) | |
download | ruby-openssl-7ce811a4246f1452ce9d093a72e6cc5cccff50ff.tar.gz |
Sync trunk
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/ossl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 92b5d1b1..d03dfa7a 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -626,6 +626,7 @@ static void Init_ossl_locks(void) * loading the key: * * key4_pem = File.read 'private.secure.pem' + * pass_phrase = 'my secure pass phrase goes here' * key4 = OpenSSL::PKey::RSA.new key4_pem, pass_phrase * * == RSA Encryption @@ -790,6 +791,7 @@ static void Init_ossl_locks(void) * This example creates a self-signed certificate using an RSA key and a SHA1 * signature. * + * key = OpenSSL::PKey::RSA.new 2048 * name = OpenSSL::X509::Name.parse 'CN=nobody/DC=example' * * cert = OpenSSL::X509::Certificate.new @@ -859,6 +861,7 @@ static void Init_ossl_locks(void) * not readable by other users. * * ca_key = OpenSSL::PKey::RSA.new 2048 + * pass_phrase = 'my secure pass phrase goes here' * * cipher = OpenSSL::Cipher::Cipher.new 'AES-128-CBC' * |