#/bin/bash #rm ./gpo-repositories.xml #wget http://gpo.zugaina.org/lst/gpo-repositories.xml && #openssl req -new -x509 -keyout localhost.pem -out localhost.pem -nodes -days 365 #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") python3 server.py #python client.py