Sha256: c6334c08fdb40b3c13057a88432dcda98304268a6eb1a432771b45765797b3f5
Contents?: true
Size: 612 Bytes
Versions: 51
Compression:
Stored size: 612 Bytes
Contents
#!/usr/bin/env ruby require 'omf_common' OmfCommon::Auth::CertificateStore.init root = OmfCommon::Auth::Certificate.create(nil, 'omf_ca', 'ca', 'omf', nil, Time.now, 3600 * 365 * 10) ec_key = OpenSSL::PKey::RSA.new(2048) rc_key = OpenSSL::PKey::RSA.new(2048) ec_pub = ec_key.public_key rc_pub = rc_key.public_key ec = root.create_for('my_ec', 'ec', 'controller', 'omf', 3600 * 365 * 10, ec_pub) rc = root.create_for('my_rc', 'rc', 'controller', 'omf', 3600 * 365 * 10, rc_pub) %w(root ec_key rc_key ec_pub rc_pub ec rc).each do |n| File.write("#{n}.pem", eval(n).to_pem) info "Generated #{n}.pem" end
Version data entries
51 entries across 51 versions & 1 rubygems