Skip to content

Commit

Permalink
Ensure binary encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed May 19, 2021
1 parent 3464ab9 commit a03ccd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openssl/x509.rb
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def pretty_print(q)
end

def self.load_file(path)
load(File.read(path))
load(File.read(path, encoding: Encoding::BINARY))
end
end

Expand Down

0 comments on commit a03ccd5

Please sign in to comment.