add upstream source (adch++ 2.12.1 from sourceforge)
This commit is contained in:
26
src/linux/generate_certs.sh
Normal file
26
src/linux/generate_certs.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Checking for OpenSSL"
|
||||
|
||||
if [ "$(which openssl)" ];
|
||||
then
|
||||
echo "OpenSSL was found, generating keys..."
|
||||
openssl genrsa -out privkey.pem 2048
|
||||
clear
|
||||
openssl dhparam -outform PEM -out dhparam.pem 1024
|
||||
openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095
|
||||
clear
|
||||
|
||||
if [ -f certs/trusted ];
|
||||
then
|
||||
echo "No need create a directory that already exists"
|
||||
else
|
||||
mkdir -p certs/trusted
|
||||
fi
|
||||
|
||||
mv *.pem certs
|
||||
|
||||
echo "All done!"
|
||||
else
|
||||
echo "Unable to locate OpenSSL, please make sure it is installed"
|
||||
fi
|
||||
BIN
src/linux/redhat/adchpp
Normal file
BIN
src/linux/redhat/adchpp
Normal file
Binary file not shown.
Reference in New Issue
Block a user