@@ -67,15 +67,15 @@ to it, even for renewals. You can use the same CSR for multiple renewals. NOTE:
67
67
you can't use your account private key as your domain private key!
68
68
69
69
```
70
- #generate a domain private key (if you haven't already)
70
+ # Generate a domain private key (if you haven't already)
71
71
openssl genrsa 4096 > domain.key
72
72
```
73
73
74
74
```
75
- #for a single domain
75
+ # For a single domain
76
76
openssl req -new -sha256 -key domain.key -subj "/CN=yoursite.com" > domain.csr
77
77
78
- #for multiple domains (use this one if you want both www.yoursite.com and yoursite.com)
78
+ # For multiple domains (use this one if you want both www.yoursite.com and yoursite.com)
79
79
openssl req -new -sha256 -key domain.key -subj "/" -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:yoursite.com,DNS:www.yoursite.com")) > domain.csr
80
80
```
81
81
@@ -89,12 +89,12 @@ Encrypt will perform a plain HTTP request to port 80 on your server, so you
89
89
must serve the challenge files via HTTP (a redirect to HTTPS is fine too).
90
90
91
91
```
92
- #make some challenge folder (modify to suit your needs)
92
+ # Make some challenge folder (modify to suit your needs)
93
93
mkdir -p /var/www/challenges/
94
94
```
95
95
96
96
``` nginx
97
- #example for nginx
97
+ # Example for nginx
98
98
server {
99
99
listen 80;
100
100
server_name yoursite.com www.yoursite.com;
@@ -115,7 +115,7 @@ script on your server with the permissions needed to write to the above folder
115
115
and read your private account key and CSR.
116
116
117
117
```
118
- #run the script on your server
118
+ # Run the script on your server
119
119
python acme_tiny.py --account-key ./account.key --csr ./domain.csr --acme-dir /var/www/challenges/ > ./signed_chain.crt
120
120
```
121
121
@@ -171,7 +171,7 @@ service nginx reload
171
171
```
172
172
173
173
```
174
- #example line in your crontab (runs once per month)
174
+ # Example line in your crontab (runs once per month)
175
175
0 0 1 * * /path/to/renew_cert.sh 2>> /var/log/acme_tiny.log
176
176
```
177
177
0 commit comments