aboutsummaryrefslogtreecommitdiffstats
path: root/examples/gen_ca_cert.rb
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gen_ca_cert.rb')
-rwxr-xr-xexamples/gen_ca_cert.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/gen_ca_cert.rb b/examples/gen_ca_cert.rb
index 798a323..6dd0632 100755
--- a/examples/gen_ca_cert.rb
+++ b/examples/gen_ca_cert.rb
@@ -5,6 +5,10 @@ include OpenSSL
include X509
include PKey
+p RUBY_VERSION
+p OpenSSL::VERSION
+p OPENSSL_VERSION
+
p key = RSA.new(2048)
p new = Certificate.new
name = [['C', 'CZ'],['O','Ruby'],['CN','RubyCA']]
@@ -34,6 +38,6 @@ puts "Enter Password:"
p pass = gets.chop!
f = File.new("./#{new.serial}key.pem", "w")
-f.write key.export(Cipher::DES.new(Cipher::EDE3, Cipher::CBC), pass)
+f.write key.export(Cipher::DES.new(:EDE3, :CBC), pass)
f.close