This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
misc:ssl_certificate [2023/11/17 17:37] manu |
misc:ssl_certificate [2023/11/17 17:44] (current) manu [View contents of PEM certificate file] |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| If your server/device requires a different certificate format other than Base64 encoded X.509, a third party tool such as OpenSSL can be used to convert the certificates into the appropriate format. | If your server/device requires a different certificate format other than Base64 encoded X.509, a third party tool such as OpenSSL can be used to convert the certificates into the appropriate format. | ||
| + | ===== View contents of certificate file ===== | ||
| + | |||
| + | PEM file: | ||
| + | <cli prompt='#'> | ||
| + | # openssl x509 -in CERTIFICATE.pem -text -noout | ||
| + | </cli> | ||
| + | |||
| + | DER file: | ||
| + | <cli prompt='#'> | ||
| + | # openssl x509 -inform der -in CERTIFICATE.der -text -noout | ||
| + | </cli> | ||
| ===== Some common conversion commands are listed below: ===== | ===== Some common conversion commands are listed below: ===== | ||
| Line 52: | Line 63: | ||
| Note: This requires 2 commands | Note: This requires 2 commands | ||
| - | STEP 1: Convert PFX to PEM | + | * STEP 1: Convert PFX to PEM |
| <cli prompt='#'> | <cli prompt='#'> | ||
| Line 59: | Line 69: | ||
| </cli> | </cli> | ||
| - | STEP 2: Convert PEM to PKCS8 | + | * STEP 2: Convert PEM to PKCS8 |
| <cli prompt='#'> | <cli prompt='#'> | ||
| Line 70: | Line 79: | ||
| Note: This requires 2 commands | Note: This requires 2 commands | ||
| - | STEP 1: Convert P7B to CER | + | * STEP 1: Convert P7B to CER |
| <cli prompt='#'> | <cli prompt='#'> | ||
| Line 77: | Line 85: | ||
| </cli> | </cli> | ||
| - | STEP 2: Convert CER and Private Key to PFX | + | * STEP 2: Convert CER and Private Key to PFX |
| <cli prompt='#'> | <cli prompt='#'> | ||