Sha256: c5c3aea0293732aacc0c92529935cab0b7e67eb262f16bf50a1a8c526d32e9f7

Contents?: true

Size: 563 Bytes

Versions: 13

Compression:

Stored size: 563 Bytes

Contents

Generate a self-signed certificate:

    key  = Ronin::Support::Crypto::Key::RSA.random
    cert = Ronin::Support::Crypto::Cert.generate(
      key: key,
      subject: {
        common_name:         'localhost',
        organization:        'Test Co..',
        organizational_unit: 'Test Dept',
        locality:            'Test City',
        state:               'XX',
        country:             'US'
      },
      extensions: {
        'subjectAltName' => 'DNS: localhost, IP: 127.0.0.1'
      }
    )
    key.save('cert.key')
    cert.save('cert.pem')

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ronin-2.1.0 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.1.0.rc1 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.5 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.4 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.3 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.2 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.1 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.0 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.0.beta5 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.0.beta4 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.0.beta3 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.0.beta2 data/tips/scripting/generate_self_signed_cert.txt
ronin-2.0.0.beta1 data/tips/scripting/generate_self_signed_cert.txt