lib/transip.rb in transip-0.3.4 vs lib/transip.rb in transip-0.3.5

- old
+ new

@@ -281,10 +281,10 @@ '__timestamp' => time, '__nonce' => nonce } input.merge!(options) - raise "Invalid RSA key" unless @key =~ /-----BEGIN RSA PRIVATE KEY-----(.*)-----END RSA PRIVATE KEY-----/sim + raise "Invalid RSA key" unless @key =~ /-----BEGIN (RSA )?PRIVATE KEY-----(.*)-----END (RSA )?PRIVATE KEY-----/sim serialized_input = serialize_parameters(input) digest = Digest::SHA512.new.digest(serialized_input) asn_header = "\x30\x51\x30\x0d\x06\x09\x60\x86\x48\x01\x65\x03\x04\x02\x03\x05\x00\x04\x40" asn = asn_header + digest