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')