Skip to content

Commit

Permalink
refactoring to correct for not finding certs correctly in some cases.
Browse files Browse the repository at this point in the history
Signed-off-by: John McCrae <[email protected]>
  • Loading branch information
John McCrae committed May 15, 2022
1 parent f45f53e commit 401b8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/win32/certstore/mixin/assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def validate_certificate_obj(cert_obj)

# Validate thumbprint
def validate_thumbprint(cert_thumbprint)
if cert_thumbprint.nil? || cert_thumbprint.empty? || cert_thumbprint.strip.empty?
if cert_thumbprint.nil? || cert_thumbprint.empty? || cert_thumbprint.strip.empty? || cert_thumbprint.length < 40
raise ArgumentError, "Invalid certificate thumbprint."
end
end
Expand Down

0 comments on commit 401b8d2

Please sign in to comment.