mirror of
https://git.phreedom.club/localhost_frssoft/compy.git
synced 2024-11-05 16:03:19 +00:00
7a40f35b33
Fixes #11.
16 lines
435 B
Bash
Executable file
16 lines
435 B
Bash
Executable file
#!/bin/sh
|
|
|
|
openssl req -x509 -newkey rsa:2048 -nodes -keyout cert.key -out cert.crt -days 3650 -subj "/CN=${CERTIFICATE_DOMAIN}"
|
|
openssl req -x509 -newkey rsa:2048 -nodes -keyout ca.key -out ca.crt -days 3650 -subj "/CN=${CERTIFICATE_DOMAIN}"
|
|
|
|
echo 'Generated server certificate:'
|
|
cat cert.crt
|
|
echo
|
|
echo 'Generated CA certificate:'
|
|
cat ca.crt
|
|
|
|
exec ./compy \
|
|
-cert cert.crt -key cert.key \
|
|
-ca ca.crt -cakey ca.key \
|
|
:9999
|