Skip to content

Commit d530046

Browse files
author
HD Moore
committed
Bugfix. Chrome is a liar (chain certs properly)
1 parent 0d091f1 commit d530046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/socket/ssl_tcp_server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def self.ssl_parse_pem(ssl_cert)
117117
if pem =~ /PRIVATE KEY/
118118
key = OpenSSL::PKey::RSA.new(pem)
119119
elsif pem =~ /CERTIFICATE/
120-
certs << OpenSSL::X509::Certificate.new(ssl_cert)
120+
certs << OpenSSL::X509::Certificate.new(pem)
121121
end
122122
end
123123

0 commit comments

Comments
 (0)