mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-07-11 14:33:58 +03:00
Committer: fruworg <im@fruw.org>
On branch main Your branch is up to date with 'origin/main'. Changes to be committed: new file: .gitmodules new file: archetypes/default.md new file: config.toml new file: content/posts/ald-pro.md new file: content/posts/astra-fly.md new file: content/posts/astra-freeipa.md new file: content/posts/bareos-install.md new file: content/posts/cifs-automount.md new file: content/posts/create-user-keytab.md new file: content/posts/create-user-keytab.md.save new file: content/posts/dhcp-resolv.md new file: content/posts/github-ssh-auth.md new file: content/posts/ip-command.md new file: content/posts/linux-krb5.md new file: content/posts/linux-network.md new file: content/posts/linux-nfs.md.save new file: content/posts/linux-packages-rebuild.md new file: content/posts/lvm-base-commands.md new file: content/posts/pfx-to-pem.md new file: content/posts/pg-probackup-setup.md.save new file: content/posts/pg-probackup-setup.md.save.1 new file: content/posts/postgres-drop-db.md new file: content/posts/postgres-krb5.md new file: content/posts/postgres-ldaps.md new file: content/posts/postgres-pro-astra-se.md new file: content/posts/postgres-replication.md new file: content/posts/postgres-simple-backup.md new file: content/posts/postgres-tls.md new file: content/posts/reverse-shell-nc.md new file: content/posts/run-nologin.md new file: content/posts/security-solutions.md new file: content/posts/selfsigned-to-trusted.md new file: content/posts/ssh-2fa-totp.md new file: content/posts/ssh-auth-by-key.md new file: content/posts/ssh-fail2ban.md new file: content/posts/vmware-clipboard.md new file: content/posts/vmware-restart-date.md new file: content/posts/windows-disable-shutdown.md new file: static/0x952C15AB751A65F6 new file: static/favicon.ico new file: static/fruworg.png new file: themes/archie Changes not staged for commit: modified: themes/archie (modified content)
This commit is contained in:
.gitmodules
archetypes
config.tomlcontent/posts
ald-pro.mdastra-fly.mdastra-freeipa.mdbareos-install.mdcifs-automount.mdcreate-user-keytab.mdcreate-user-keytab.md.savedhcp-resolv.mdgithub-ssh-auth.mdip-command.mdlinux-krb5.mdlinux-network.mdlinux-nfs.md.savelinux-packages-rebuild.mdlvm-base-commands.mdpfx-to-pem.mdpg-probackup-setup.md.savepg-probackup-setup.md.save.1postgres-drop-db.mdpostgres-krb5.mdpostgres-ldaps.mdpostgres-pro-astra-se.mdpostgres-replication.mdpostgres-simple-backup.mdpostgres-tls.mdreverse-shell-nc.mdrun-nologin.mdsecurity-solutions.mdselfsigned-to-trusted.mdssh-2fa-totp.mdssh-auth-by-key.mdssh-fail2ban.mdvmware-clipboard.mdvmware-restart-date.mdwindows-disable-shutdown.md
static
themes
29
content/posts/pfx-to-pem.md
Normal file
29
content/posts/pfx-to-pem.md
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
title: Конвертация .pfx в .pem
|
||||
description: Используя OpenSSL
|
||||
date: 2023-04-12T11:45:00+05:00
|
||||
tags: [linux, tls]
|
||||
---
|
||||
## Извлечение сертификата и ключа
|
||||
|
||||
```bash
|
||||
openssl pkcs12 -in <tls>.pfx -out <tls>.pem -nodes
|
||||
```
|
||||
|
||||
## Извлечение сертификата
|
||||
|
||||
```bash
|
||||
openssl pkcs12 -in <tls>.pfx -clcerts -nokeys -out <cert>.pem
|
||||
```
|
||||
|
||||
## Извлечение ключа
|
||||
|
||||
```bash
|
||||
openssl pkcs12 -in <tls>.pfx -nocerts -out <key>.tmp.pem
|
||||
```
|
||||
|
||||
## Обеспароливание ключа
|
||||
|
||||
```bash
|
||||
openssl rsa -in <key>.tmp.pem -out <key>.pem
|
||||
```
|
Reference in New Issue
Block a user