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