mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-06-26 04:53:59 +03:00
little fixes
This commit is contained in:
@ -6,24 +6,24 @@ tags: [linux, tls]
|
||||
---
|
||||
## Извлечение сертификата и ключа
|
||||
|
||||
```shell
|
||||
```bash
|
||||
openssl pkcs12 -in <tls>.pfx -out <tls>.pem -nodes
|
||||
```
|
||||
|
||||
## Извлечение сертификата
|
||||
|
||||
```shell
|
||||
```bash
|
||||
openssl pkcs12 -in <tls>.pfx -clcerts -nokeys -out <cert>.pem
|
||||
```
|
||||
|
||||
## Извлечение ключа
|
||||
|
||||
```shell
|
||||
```bash
|
||||
openssl pkcs12 -in <tls>.pfx -nocerts -out <key>.tmp.key
|
||||
```
|
||||
|
||||
## Обеспароливание ключа
|
||||
|
||||
```shell
|
||||
```bash
|
||||
openssl rsa -in <key>.tmp.key -out <key>.key
|
||||
```
|
||||
|
Reference in New Issue
Block a user