blob: 294f54a3d52edeaabd0964c0bab0b1216e4fc3dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
# GNUnet TLS certificate shell scricpt
# Creates a TSL certificate to use with HTTPS transport plugin
rm -f $1 $2
# Create RSA Private Key
openssl genrsa -out $1 1024 > /dev/null
# Create a self-signed certificate in batch mode using rsa key
openssl req -batch -days 365 -out $2 -new -x509 -key $1 > /dev/null
chmod 0400 $1 $2
|