AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 01.05.2020, 19:16   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1348: Convert CER to a PFX like a boss
Источник: https://crmtipoftheday.com/1348/conv...fx-like-a-boss
==============

I have nothing but respect for Nick Doelman but his affinity with a mouse device is starting to wear me off. Yes, I’m talking about his recent post on conversion of a CER file into a PFX file. Screen after screen after screen. Phleee-a-a-se… Just looking at those give me a mental carpal injury. Plus you end up with a certificate in your local store wasting precious bytes. It should not be that difficult.

tl;dr

Future me, pay attention, this is all you need to know:

openssl pkcs12 -export -out cert.pfx -inkey priv.key -in cert.crt -certfile bundle.crt

What is this sorcery?

I assume if you’re dealing with certificates, you’re not adverse to a bit of developer’s jiggery-pokery a.k.a command line. I also assume you are here because you don’t trust an online converter and you did not find these or these instructions easy to understand. Let me compare creating the pfx certificate to one of the greatest culinary achievements ever: strawberry 2-ingredients sorbet.

Ingredients

CertificateSorbet2-3 text files:
  • cert.crt (or .cer) – contains the actual certificate
  • priv.key – contains the key (this one you should really keep a secret)
  • bundle.crt – CA and intermediate certificates bundle optionally provided by your certificate issuer
1 lb / 455g strawberry1 openssl.exe (any good cook should already have one but we also provide instructions how to make one from scratch) ¼ cup / 85g honeyPreparation

CertificateSorbetIf you have Linux or Mac, you’re all set. If you have Git for Windows, OpenSSL is already in C:\Program Files\Git\usr\bin\openssl.exe.Hull the strawberries by using a straw to push out the stem of each strawberry.If you have Chocolatey then this should do the trick of installing openssl:
choco install opensslCut strawberries in half and place on a parchmen paper-lined baking sheet and freeze until hardened.Otherwise head off to openssl wiki and pick your favorite.Add the frozen strawberries and honey to a food processor and combine until evenly mixed.Magic command line:
openssl pkcs12 -export -out cert.pfx -inkey priv.key -in cert.crt -certfile bundle.crtTransfer to a loaf pan and transfer to freezer until completely frozen.Enjoy!Enjoy!


Источник: https://crmtipoftheday.com/1348/conv...fx-like-a-boss
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crmtipoftheday: Tip #1258: Dynamic attribute names in Flow Blog bot Dynamics CRM: Blogs 0 26.04.2019 14:11
crmtipoftheday: Tip #1095: Add percentage labels to pie charts Blog bot Dynamics CRM: Blogs 0 02.04.2018 04:16
crmtipoftheday: Tip #1060: Quickly create vector/SVG images for Dynamics 365 Blog bot Dynamics CRM: Blogs 0 24.01.2018 22:11
crmtipoftheday: Tip #1053: Convert emails to knowledge articles Blog bot Dynamics CRM: Blogs 0 10.01.2018 05:11
crmtipoftheday: Tip #1037: Modify data source for Word templates like a boss Blog bot Dynamics CRM: Blogs 0 06.12.2017 09:11
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 19:00.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.