diff --git a/lib/bettercap/proxy/http/ssl/authority.rb b/lib/bettercap/proxy/http/ssl/authority.rb index 9b626ddb..8fe4d4b1 100644 --- a/lib/bettercap/proxy/http/ssl/authority.rb +++ b/lib/bettercap/proxy/http/ssl/authority.rb @@ -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 {