lib/xml/kit/self_signed_certificate.rb in xml-kit-0.1.6 vs lib/xml/kit/self_signed_certificate.rb in xml-kit-0.1.7

- old
+ new

@@ -1,8 +1,8 @@ module Xml module Kit class SelfSignedCertificate - SUBJECT="/C=CA/ST=Alberta/L=Calgary/O=XmlKit/OU=XmlKit/CN=XmlKit" + SUBJECT="/C=CA/ST=AB/L=Calgary/O=XmlKit/OU=XmlKit/CN=XmlKit" def create(algorithm: 'AES-256-CBC', passphrase: nil, key_pair: OpenSSL::PKey::RSA.new(2048)) certificate = certificate_for(key_pair.public_key) certificate.sign(key_pair, OpenSSL::Digest::SHA256.new) [ certificate.to_pem, export(key_pair, algorithm, passphrase) ]