Update pfx-to-pem.md

This commit is contained in:
Руслан 2023-10-05 15:53:10 +06:00 committed by GitHub
parent 20f62ac899
commit 153d895862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,11 +19,11 @@ openssl pkcs12 -in <tls>.pfx -clcerts -nokeys -out <cert>.pem
## Извлечение ключа
```shell
openssl pkcs12 -in <tls>.pfx -nocerts -out <key>.tmp.pem
openssl pkcs12 -in <tls>.pfx -nocerts -out <key>.tmp.key
```
## Обеспароливание ключа
```shell
openssl rsa -in <key>.tmp.pem -out <key>.pem
openssl rsa -in <key>.tmp.key -out <key>.key
```