mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-14 13:34:29 +02:00
SSL: disable hostname matching verification
This commit is contained in:
parent
4351f2ca5f
commit
663b2de177
|
@ -17,7 +17,7 @@ module SSL
|
|||
end
|
||||
|
||||
def parse(raw)
|
||||
fail DomainNotMatchError unless match_domain?(raw)
|
||||
# fail DomainNotMatchError unless match_domain?(raw) # currently disabled
|
||||
|
||||
match = raw.match(DATE_REGEX)
|
||||
|
||||
|
|
|
@ -24,13 +24,15 @@ module SSL
|
|||
assert response.expire_at.utc?
|
||||
end
|
||||
|
||||
test "should raises DomainNotMatchError when parsed text does not match the domain" do
|
||||
parser = Parser.new("anotherdomain.fr")
|
||||
output = file_fixture("ssl/ssl1.domain.org.txt").read
|
||||
# test "should raises DomainNotMatchError when parsed text does not match the domain" do
|
||||
# parser = Parser.new("anotherdomain.fr")
|
||||
# output = file_fixture("ssl/ssl1.domain.org.txt").read
|
||||
#
|
||||
# assert_raises DomainNotMatchError do
|
||||
# parser.parse(output)
|
||||
# end
|
||||
# end
|
||||
|
||||
assert_raises DomainNotMatchError do
|
||||
parser.parse(output)
|
||||
end
|
||||
test "should accept responses for wildcard certificates" do
|
||||
parser = Parser.new("ssl1.domain.org")
|
||||
output = file_fixture("ssl/wildcard.domain.org.txt").read
|
||||
|
|
Loading…
Reference in a new issue