lib/certmeister/policy/key_bits.rb in certmeister-2.2.0 vs lib/certmeister/policy/key_bits.rb in certmeister-2.3.0
- old
+ new
@@ -27,9 +27,11 @@
Certmeister::Policy::Response.new(false, "weak key")
else
Certmeister::Policy::Response.new(true, nil)
end
end
+ rescue OpenSSL::X509::RequestError => e
+ Certmeister::Policy::Response.new(false, "invalid pem (#{e.message})")
end
private
def validate_min_key_bits(min_key_bits)