diff --git a/infotro/SDi/labs/SSL/README.md b/infotro/SDi/labs/SSL/README.md new file mode 100644 index 0000000..4c1d2ac --- /dev/null +++ b/infotro/SDi/labs/SSL/README.md @@ -0,0 +1,25 @@ +

+Lab OpenSSL & Certificates +

+ +---------- + +# Create an RSA key +```bash +openssl genrsa -out .key 2048 +``` + +# Self-sign root certificate +```bash +openssl req -new -x509 -days 365 -key ca.key -config ca.cnf -out ca.crt +``` + +# Create a request +```bash +openssl req -new -sha256 -key .key -config .cnf -out .csr +``` + +# Sign a request with root certificate +```bash +openssl ca -config ca_ssl.cnf -in .csr -out .crt +``` \ No newline at end of file