Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
Fixed a bug which caused '*.domain.tld' certificates not to be correc…
Browse files Browse the repository at this point in the history
…tly handled
  • Loading branch information
evilsocket committed Aug 11, 2016
1 parent 4c35e77 commit 564d3bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/bettercap/proxy/http/ssl/authority.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def initialize

# Find the +hostname+:+port+ certificate and return it.
def find( hostname, port )
# make sure *.domain.tld hostnames are correctly sanitized
hostname.gsub!( "*", "www" )

key = Digest::SHA256.hexdigest( "#{hostname}_#{port}" )

@lock.synchronize {
Expand Down

0 comments on commit 564d3bc

Please sign in to comment.