Skip to content

Commit

Permalink
Disable certificate signature algorithm validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Dolski committed Jan 19, 2024
1 parent 2c337c7 commit a94277b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/helpers/institutions_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ def x509_cert_as_card(cert:, key: nil)
html << "<dt>Signature Algorithm</dt>"
html << "<dd>"
html << cert.signature_algorithm
if cert.signature_algorithm != "sha256WithRSAEncryption"
html << boolean(false, style: :word, false_value: "INVALID")
end
-# TODO: what about sha1WithRSAEncryption?
-#if cert.signature_algorithm != "sha256WithRSAEncryption"
-# html << boolean(false, style: :word, false_value: "INVALID")
-#end
html << "</dd>"
html << "<dt>Subject</dt>"
html << "<dd>"
Expand Down

0 comments on commit a94277b

Please sign in to comment.