Skip to content

Commit

Permalink
remove client creds
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Nov 28, 2024
1 parent 687707f commit 5b41dac
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .builder/actions/tls_server_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,6 @@ def run(self, env):
for c in iter(lambda: p1.stderr.read(1), b""):
sys.stdout.buffer.write(c)

p1 = subprocess.Popen(["netsh", "advfirewall", "set", "allprofiles", "state", "off"
], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
time.sleep(1)
p1.poll()
print("Return code for p1 is {}".format(p1.returncode))
print("=== stdout 1:")
for c in iter(lambda: p1.stdout.read(1), b""):
sys.stdout.buffer.write(c)
print("=== stderr 1:")
for c in iter(lambda: p1.stderr.read(1), b""):
sys.stdout.buffer.write(c)

p1 = subprocess.Popen(["netsh", "advfirewall", "show", "all"
], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
time.sleep(1)
p1.poll()
print("Return code for p1 is {}".format(p1.returncode))
print("=== stdout 1:")
for c in iter(lambda: p1.stdout.read(1), b""):
sys.stdout.buffer.write(c)
print("=== stderr 1:")
for c in iter(lambda: p1.stderr.read(1), b""):
sys.stdout.buffer.write(c)

p = subprocess.Popen(["openssl.exe", "s_server",
"-accept", "127.0.0.1:59443",
"-key", "tls13.key",
Expand All @@ -81,9 +57,6 @@ def run(self, env):

p2 = subprocess.Popen(["openssl.exe", "s_client",
"-connect", "127.0.0.1:59443",
"-key", "tls13.key",
"-cert", "tls13.pem.crt",
"-CAfile", "tls13_root_ca.pem.crt",
"-debug", "-state",
"-servername", "localhost",
], cwd=dir, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down

0 comments on commit 5b41dac

Please sign in to comment.