You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
784 B

преди 4 години
#/bin/bash
#rm ./gpo-repositories.xml
#wget http://gpo.zugaina.org/lst/gpo-repositories.xml &&
преди 2 години
#openssl req -new -x509 -keyout localhost.pem -out localhost.pem -nodes -days 365
преди 2 години
#openssl req -new -x509 -keyout localhost.pem -out localhost.pem -days 365 -nodes
#openssl req -x509 -out localhost.pem -keyout localhost.key \
#
# latsed gen localhost.pem for https://
#openssl req -x509 -nodes -new -sha512 -days 365 -newkey rsa:4096 -keyout ca.key -out localhost.pem -subj "/C=US/CN=MY-CA"
# -newkey rsa:2048 -nodes -sha256 \
# -subj '/CN=localhost' -extensions EXT -config <( \
# printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
преди 4 години
python3 server.py
#python client.py