Skip to content

Commit

Permalink
Use binread instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelafuente-r7 committed Nov 18, 2024
1 parent 7c512b7 commit 2970c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/auxiliary/admin/kerberos/get_ticket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def initialize(info = {})

def validate_options
if datastore['CERT_FILE'].present?
certificate = File.open(datastore['CERT_FILE'], 'rb', &:read)
certificate = File.binread(datastore['CERT_FILE'])
begin
@pfx = OpenSSL::PKCS12.new(certificate, datastore['CERT_PASSWORD'] || '')
rescue OpenSSL::PKCS12::PKCS12Error => e
Expand Down

0 comments on commit 2970c99

Please sign in to comment.