summaryrefslogtreecommitdiff
path: root/vendor/certificate_authority
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/certificate_authority')
-rw-r--r--vendor/certificate_authority/lib/certificate_authority/certificate.rb4
-rw-r--r--vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb4
-rw-r--r--vendor/certificate_authority/lib/certificate_authority/signing_request.rb2
3 files changed, 5 insertions, 5 deletions
diff --git a/vendor/certificate_authority/lib/certificate_authority/certificate.rb b/vendor/certificate_authority/lib/certificate_authority/certificate.rb
index 3fcae90..496d91e 100644
--- a/vendor/certificate_authority/lib/certificate_authority/certificate.rb
+++ b/vendor/certificate_authority/lib/certificate_authority/certificate.rb
@@ -108,9 +108,9 @@ module CertificateAuthority
end
if signing_profile["digest"].nil?
- digest = OpenSSL::Digest::Digest.new("SHA512")
+ digest = OpenSSL::Digest.new("SHA512")
else
- digest = OpenSSL::Digest::Digest.new(signing_profile["digest"])
+ digest = OpenSSL::Digest.new(signing_profile["digest"])
end
self.openssl_body = openssl_cert.sign(parent.key_material.private_key, digest)
diff --git a/vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb b/vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb
index e222e26..c84d588 100644
--- a/vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb
+++ b/vendor/certificate_authority/lib/certificate_authority/certificate_revocation_list.rb
@@ -59,9 +59,9 @@ module CertificateAuthority
signing_cert = OpenSSL::X509::Certificate.new(self.parent.to_pem)
if signing_profile["digest"].nil?
- digest = OpenSSL::Digest::Digest.new("SHA512")
+ digest = OpenSSL::Digest.new("SHA512")
else
- digest = OpenSSL::Digest::Digest.new(signing_profile["digest"])
+ digest = OpenSSL::Digest.new(signing_profile["digest"])
end
crl.issuer = signing_cert.subject
self.crl_body = crl.sign(self.parent.key_material.private_key, digest)
diff --git a/vendor/certificate_authority/lib/certificate_authority/signing_request.rb b/vendor/certificate_authority/lib/certificate_authority/signing_request.rb
index 72d9e2b..3584dac 100644
--- a/vendor/certificate_authority/lib/certificate_authority/signing_request.rb
+++ b/vendor/certificate_authority/lib/certificate_authority/signing_request.rb
@@ -62,7 +62,7 @@ module CertificateAuthority
opensslcsr.subject = @distinguished_name.to_x509_name
opensslcsr.public_key = @key_material.public_key
opensslcsr.attributes = @attributes unless @attributes.nil?
- opensslcsr.sign @key_material.private_key, OpenSSL::Digest::Digest.new(@digest || "SHA512")
+ opensslcsr.sign @key_material.private_key, OpenSSL::Digest.new(@digest || "SHA512")
opensslcsr
end