Skip to content

Commit 1ed2d7e

Browse files
authored
Merge pull request rapid7#19658 from cdelafuente-r7/fix/mod/get_ticket/file_read
Fix `auxiliary/admin/kerberos/get_ticket` issue on Windows
2 parents 26e424a + 2970c99 commit 1ed2d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/admin/kerberos/get_ticket.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def initialize(info = {})
9191

9292
def validate_options
9393
if datastore['CERT_FILE'].present?
94-
certificate = File.read(datastore['CERT_FILE'])
94+
certificate = File.binread(datastore['CERT_FILE'])
9595
begin
9696
@pfx = OpenSSL::PKCS12.new(certificate, datastore['CERT_PASSWORD'] || '')
9797
rescue OpenSSL::PKCS12::PKCS12Error => e

0 commit comments

Comments
 (0)