lib/r509/certificateauthority/http/server.rb in r509-ca-http-0.3.0 vs lib/r509/certificateauthority/http/server.rb in r509-ca-http-0.3.1
- old
+ new
@@ -200,11 +200,13 @@
end
if not serial
raise ArgumentError, "Serial must be provided"
end
- if not reason.nil? and reason.empty?
+ if reason.nil? or reason.empty?
reason = nil
+ else
+ reason = reason.to_i
end
crl(ca).revoke_cert(serial, reason)
crl(ca).generate_crl.to_pem