chef/lib/chef/certificate.rb
# Creates a new key pair, and signs them with the signing certificate
# and key generated from generate_signing_ca above.
#
# All arguments are unused, though two arguments are accepted for compatibility.
#
# returns an array of [public_key, private_key]
Creates a new key pair, and signs them with the signing certificate
and key generated from generate_signing_ca above.

All arguments are unused, though two arguments are accepted for compatibility.


Creates a new key pair and signs them with the signing certificate and key generated from generate_signing_ca above . All arguments are unused though two arguments are accepted for compatibility .
def gen_keypair(common_name=nil, subject_alternative_name = nil)
        Chef::Log.info("Creating new key pair for #{common_name}")
        client_keypair = OpenSSL::PKey::RSA.generate(2048)
        return client_keypair.public_key, client_keypair
      end
def gen_keypair ( common_name = nil , subject_alternative_name = nil ) Chef :: Log . info ( "Creating new key pair for #{common_name}" ) client_keypair = OpenSSL :: PKey :: RSA . generate ( 2048 ) return client_keypair . public_key , client_keypair end
Creates a new key pair, and signs them with the signing certificate
and key generated from generate_signing_ca above.
Creates a new key pair and signs them with the signing certificate and key generated from generate_signing_ca above .
# generate client keypair
common_name
<not_specific>
subject_alternative_name
<not_specific>