325
edits
(Added signing a CSR) |
(Add CASetserial for real-world use) |
||
Line 122: | Line 122: | ||
subject=C = GB, ST = Yorkshire, L = Leeds, O = Company Name, CN = www.mydomain.com | subject=C = GB, ST = Yorkshire, L = Leeds, O = Company Name, CN = www.mydomain.com | ||
Enter pass phrase for private/intermediate.key:</pre> | Enter pass phrase for private/intermediate.key:</pre> | ||
For later certificates use the -CAcreateserial switch instead to increment the serial number: | |||
<pre>$ openssl x509 -req -days 397 -in csr/www.mydomain.com.csr -CA certs/intermediate.crt -CAkey private/intermediate.key -extensions v3_req -extfile extensions.cnf -CAcreateserial -out newcerts/www.mydomain.com.crt</pre> | |||
Now you have created the certificate, check all the details are correct: | Now you have created the certificate, check all the details are correct: | ||
<pre> | <pre> |