Project

General

Profile

Bug #14087 ยป ruby_bug.rb

demo of the problem - Berry (Berry Jin), 11/06/2017 02:55 PM

 
#!/usr/bin/env ruby

gem "openssl"
require "openssl"

include OpenSSL::PKey
include OpenSSL::X509

dh = OpenSSL::PKey::DH.new 2048
cert = OpenSSL::X509::Certificate.new
cert.public_key = dh.public_key
puts dh.public_key.to_s
    (1-1/1)