Aleksandra Maciaga | a73f9a5 | 2019-11-20 12:14:44 +0100 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | WS=$1 | ||||
4 | dir=$WS/tests/dcaegen2/testcases/assets/certs | ||||
5 | |||||
6 | openssl genrsa -out "$dir/temporary.key" 2048 | ||||
7 | |||||
8 | openssl req -new -key "$dir/temporary.key" -subj "/C=PL/ST=DL/O=Nokia/CN=dcaegen2" -out "$dir/temporary.csr" | ||||
9 | |||||
10 | openssl x509 -req -in "$dir/temporary.csr" -CA "$dir/rootCA.crt" -CAkey "$dir/rootCA.key" -passin pass:collector -CAcreateserial -out "$dir/temporary.crt" -days 1 -sha256 |