commit | author | age
|
5686c9
|
1 |
#!/bin/bash |
JK |
2 |
|
|
3 |
sudo apt-get update |
e48ca5
|
4 |
sudo apt-get -y install default-jdk gradle openssl stunnel |
5686c9
|
5 |
|
JK |
6 |
openssl genrsa -out /tmp/correct.key 1024 |
|
7 |
openssl req -new -key /tmp/correct.key -out /tmp/correct.crt -subj '/CN=127.0.0.1/' -x509 |
|
8 |
cat /tmp/correct.crt /tmp/correct.key > /tmp/correct.pem |
|
9 |
|
|
10 |
openssl genrsa -out /tmp/wrongcn.key 1024 |
|
11 |
openssl req -new -key /tmp/wrongcn.key -out /tmp/wrongcn.crt -subj '/CN=127.0.0.2/' -x509 |
|
12 |
cat /tmp/wrongcn.crt /tmp/wrongcn.key > /tmp/wrongcn.pem |