019db07633d376e1e7d19cd61dc28e94776ab99e
[oweals/gnunet.git] / src / gns / gnunet-gns-proxy-setup-ca
1 echo "Generating CA"
2
3 openssl req -new -x509 -days 3650 -extensions v3_ca -keyout gnscakey.pem -out gnscacert.pem -subj "/C=DE/ST=Bavaria/L=Munich/O=TUM/OU=IN/CN=GNS Proxy CA/emailAddress=bounce@gnunet.org" -passout pass:"GNUnet Naming System"
4
5 echo "Removing passphrase from key"
6 openssl rsa -passin pass:"GNUnet Naming System" -in gnscakey.pem -out gnscakeynoenc.pem
7
8 cp gnscacert.pem $HOME/.gnunet/gns/gnscert.pem
9 cat gnscacert.pem > $HOME/.gnunet/gns/gnsCAcert.pem
10 cat gnscakeynoenc.pem >> $HOME/.gnunet/gns/gnsCAcert.pem
11
12 rm gnscakey.pem gnscakeynoenc.pem gnscacert.pem
13
14 echo "Next steps:"
15 echo "1. The new CA will be used automatically by the proxy with the default settings"
16 echo "2. Please import the certificate $HOME/.gnunet/gns/gnscert.pem into the browser of your choice"
17 echo "3. Start gnunet-gns-proxy and configure your broser to use a SOCKS proxy on port 7777"