add ssl-lab
This commit is contained in:
1 parent
47b6eb808e
commit
35ee5b72df
1 file changed
+25
@@ -0,0 +1,25 @@
|
||||
<header><h1>
|
||||
Lab OpenSSL & Certificates
|
||||
</h1></header>
|
||||
|
||||
----------
|
||||
|
||||
# Create an RSA key
|
||||
```bash
|
||||
openssl genrsa -out <name>.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 <my_site>.key -config <my_site>.cnf -out <my_site>.csr
|
||||
```
|
||||
|
||||
# Sign a request with root certificate
|
||||
```bash
|
||||
openssl ca -config ca_ssl.cnf -in <my_site>.csr -out <my_site>.crt
|
||||
```
|
||||
Reference in new issue
Block a user