Skip to content

Commit 1f798df

Browse files
committed
chore: add command to generate SSL cert and key files
Signed-off-by: Norbert Biczo <[email protected]>
1 parent e76a6ff commit 1f798df

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test_integration/test_no_ssl_verification.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@
1111
from ibm_cloud_sdk_core.authenticators import NoAuthAuthenticator
1212

1313

14+
# The certificate files that are used in this tests are generated by this command:
15+
# openssl req \
16+
# -new \
17+
# -newkey rsa:4096 \
18+
# -days 36500 \
19+
# -nodes \
20+
# -x509 \
21+
# -subj "/C=US/CN=localhost" \
22+
# -keyout test_ssl.key \
23+
# -out test_ssl.cert
24+
25+
# -subj "/C=US/ST=Some-State/L=Springfield/O=Dis/CN=localhost" \
26+
27+
1428
def test_ssl_verification():
1529
# Load the certificate and the key files.
1630
cert = os.path.join(os.path.dirname(__file__), '../resources/test_ssl.cert')

0 commit comments

Comments
 (0)