haketilo / test / init.sh @ 591c48a6
1 |
#!/bin/sh
|
---|---|
2 |
#
|
3 |
# Copyright (c) 2015, inaz2
|
4 |
# Copyright (C) 2021 jahoti <jahoti@tilde.team>
|
5 |
# Licensing information is collated in the `copyright` file
|
6 |
|
7 |
# Initialize the root certificate for the tests proxy server
|
8 |
# Make sure this is run in the directory where they will be put!
|
9 |
|
10 |
|
11 |
if [ -n "$1" ]; then |
12 |
cd "$1" |
13 |
fi
|
14 |
openssl genrsa -out ca.key 2048
|
15 |
openssl genrsa -out cert.key 2048
|
16 |
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -subj "/CN=Hachette Test" |