diff options
author | Chris Donley <christopher.donley@huawei.com> | 2018-03-29 15:57:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-29 15:57:25 +0000 |
commit | f2e67cf2d7f790c039ebb4b9cfb56f69b2b78dbe (patch) | |
tree | 1cbd76e662393d1cbf66b3b57530d68c10ee65da /veslibrary/ves_clibrary/evel/evel-test-collector/docs/ssl_certsample | |
parent | fec86afca1c91fef717f2ab09555ff9f29956bb8 (diff) | |
parent | c076f7ddb4cc27a3f626e5c9c96084f8109b6330 (diff) |
Merge "Update C library with https batch"
Diffstat (limited to 'veslibrary/ves_clibrary/evel/evel-test-collector/docs/ssl_certsample')
-rw-r--r-- | veslibrary/ves_clibrary/evel/evel-test-collector/docs/ssl_certsample | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/veslibrary/ves_clibrary/evel/evel-test-collector/docs/ssl_certsample b/veslibrary/ves_clibrary/evel/evel-test-collector/docs/ssl_certsample new file mode 100644 index 0000000..f828177 --- /dev/null +++ b/veslibrary/ves_clibrary/evel/evel-test-collector/docs/ssl_certsample @@ -0,0 +1,15 @@ +# Generate CA key and certificate +openssl genrsa -des3 -out test.ca.key 8192 +openssl req -new -key test.ca.key -x509 -days 30 -out test.ca.crt + +# Generate server key and certificate +openssl genrsa -out www.testsite.com.key 1024 +openssl req -new -key www.testsite.com.key -out www.testsite.com.csr +openssl x509 -req -days 30 -in www.testsite.com.csr -CA test.ca.crt -CAkey test.ca.key -CAcreateserial -out www.testsite.com.crt + +# Generate client key and certificate +openssl genrsa -out testclient.key 1024 +openssl req -new -key testclient.key -out testclient.csr +openssl x509 -req -days 30 -in testclient.csr -CA test.ca.crt -CAkey test.ca.key -CAcreateserial -out testclient.crt + +openssl pkcs12 -export -clcerts -in testclient.crt -inkey testclient.key -out testclient.p12 |