Created
November 8, 2021 21:14
-
-
Save alexzorin/48d8e04df7c728b577f4ba2864e8f42a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@unittest.skipIf(filesystem.POSIX_MODE, reason='Test specific to Windows') | |
def test_foreign_webconfig_multiple_domains(self): | |
# Covers bug https://github.com/certbot/certbot/issues/9091 | |
achall_2 = achallenges.KeyAuthorizationAnnotatedChallenge( | |
challb=acme_util.chall_to_challb(challenges.HTTP01(token=b"bingo"), "pending"), | |
domain="second-thing.com", account_key=KEY) | |
self.config.webroot_map["second-thing.com"] = self.path | |
challenge_path = os.path.join(self.path, ".well-known", "acme-challenge") | |
filesystem.makedirs(challenge_path) | |
webconfig_path = os.path.join(challenge_path, "web.config") | |
with open(webconfig_path, "w") as file: | |
file.write("something") | |
self.auth.perform([self.achall, achall_2]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment