misc_rbtools/fake_tunnel_connector/setup_ssl_cert.rb

9 lines
318 B
Ruby
Raw Normal View History

2020-07-22 01:00:20 -05:00
require './ssl.rb'
ssl_helper = SSL.new
cert, name, key = ssl_helper.generate_cert
signed_key = ssl_helper.self_sign_key(cert, name, key)
puts "you should now have a certificate.pem in the current working directory"
puts "you should now have a public_key.pem and a private_key.pem in the current working directory."