From 722e5f40effecc49b042bb1b4390c1ee1e72a4ca Mon Sep 17 00:00:00 2001
From: jbhusson <jonah@elixxir.io>
Date: Wed, 21 Dec 2022 13:07:32 -0500
Subject: [PATCH] Add alpn header to openssl command

---
 basice2e/run.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/basice2e/run.sh b/basice2e/run.sh
index 5f8dd06..ab4d944 100755
--- a/basice2e/run.sh
+++ b/basice2e/run.sh
@@ -81,7 +81,8 @@ else
 fi
 
 echo "DOWNLOADING TLS Cert..."
-CMD="openssl s_client -showcerts -connect $(tr -d '[:space:]' < results/startgwserver.txt)"
+# -alpn h2 added to mimic grpc headers
+CMD="openssl s_client -alpn h2 -showcerts -connect $(tr -d '[:space:]' < results/startgwserver.txt)"
 echo $CMD
 eval $CMD < /dev/null 2>&1 > "results/startgwcert.bin"
 CMD="cat results/startgwcert.bin | openssl x509 -outform PEM"
-- 
GitLab