mirror of https://github.com/jacekkow/uphpCAS-tests

Jacek Kowalski
2015-09-05 9da16f4812a443331d93348b2b0e7a88924b6724
commit | author | age
5686c9 1 #!/bin/bash
JK 2
3 sudo apt-get update
4 sudo apt-get -y install gradle openssl stunnel
5
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