Моя шпаргалка :)

Мануалы и настройки => Настройки *nix (почта, web, система etc) => Тема начата: George от Апр. 28, 2026, 06:32

Название: Сделать из .pfx .pem .key
Отправлено: George от Апр. 28, 2026, 06:32
Добрый день. Вытащим из pfx сертификат с ключем и сделаем fullchain

1. Ключ
openssl pkcs12 -in cert.pfx -nocerts -nodes -out private.key
2. Сертификат
openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.pem
3. Цепочка
openssl pkcs12 -in cert.pfx -cacerts -nokeys -out ca-chain.pem
4. Соберем fullchain
cat cert.pem ca-chain.pem > fullchain.pem