certificates:certificates_guide
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| certificates:certificates_guide [2021/09/23 10:26] – created bstafford | certificates:certificates_guide [2025/07/10 19:00] (current) – [Strip Password from Base64] bstafford | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Extra info can also be found on [[http:// | Extra info can also be found on [[http:// | ||
| + | =====Strip Password from Base64===== | ||
| + | Strip a password from a Base64 file that has both certificate and key. | ||
| + | < | ||
| + | =====Add Password to Base64===== | ||
| + | Add a password to a Base64 file that is not | ||
| + | < | ||
| + | ===== Make LetsEncrypt Cert a Full Chain===== | ||
| + | This is on Nginx and we append intermediate.pem to the end of certfile.pem | ||
| + | < | ||
| + | < | ||
| + | |||
| + | ===== Create Root CA and Web Cert ===== | ||
| + | Generate Private Key: | ||
| + | < | ||
| + | |||
| + | Create Self-Signed Certificate: | ||
| + | < | ||
| + | |||
| + | Verify Certificate: | ||
| + | < | ||
| + | |||
| + | Create Web Certificate and Key | ||
| + | < | ||
| + | |||
| + | CAs should include a Subject Key Identifier in all CA certificates. | ||
| + | |||
| + | Create web Certificate Signing Request AND new key | ||
| + | < | ||
| + | |||
| + | |||
| =====SSL Info===== | =====SSL Info===== | ||
| Line 136: | Line 166: | ||
| Now create the pkcs12 file that will contain your private key and the certification chain: | Now create the pkcs12 file that will contain your private key and the certification chain: | ||
| < | < | ||
| - | =====Add Password to Base64===== | ||
| - | Add a password to a Base64 file that is not | ||
| - | < | ||
| - | =====Strip Password from Base64===== | ||
| - | Strip a password from a Base64 file that has both certificate and key. | ||
| - | < | ||
| =====Extract Public Key From Certificate===== | =====Extract Public Key From Certificate===== | ||
| Line 150: | Line 174: | ||
| To extract the key and certificate from a PFX file, run the following openssl command. If the cert.pfx file has a password, the command above will prompt you to enter the password. It will then generate details.txt. You have to open details.txt in a text editor. | To extract the key and certificate from a PFX file, run the following openssl command. If the cert.pfx file has a password, the command above will prompt you to enter the password. It will then generate details.txt. You have to open details.txt in a text editor. | ||
| - | < | + | < |
| You will see the private key (without a password) between | You will see the private key (without a password) between | ||
| < | < | ||
| Line 167: | Line 191: | ||
| **Extract Private Key from PFX** | **Extract Private Key from PFX** | ||
| - | < | + | < |
| **Extract Certificate from PFX** | **Extract Certificate from PFX** | ||
| - | < | + | < |
certificates/certificates_guide.1632392801.txt.gz · Last modified: (external edit)
