Certificates: Difference between revisions

From Piszczynski
piszczynski>Aleks
(Created page with " == Certificates == Certificates can be found with the .mmc certificates snapin Export option with key to allow import to another computer == Extract .crt == if you need c...")
 
piszczynski>Aleks
Line 12: Line 12:


Use the following command to extract when running openssl as admin:
Use the following command to extract when running openssl as admin:
*pkcs12 -in C:\PathToThePFXfile\myPFXfileName.pfx -out certificate.txt -nodes
*openssl pkcs12 -in C:\PathToThePFXfile\myPFXfileName.pfx -out certificate.txt -nodes


This will extract the cert to a text file where you can grap the public and private keys and save them in text as a .crt and .key file.
This will extract the cert to a text file where you can grap the public and private keys and save them in text as a .crt and .key file.

Revision as of 09:22, 26 August 2020

Certificates

Certificates can be found with the .mmc certificates snapin

Export option with key to allow import to another computer


Extract .crt

if you need cert in .crt format with key for ssl you can use open ssl to extract the keys.


Use the following command to extract when running openssl as admin:

  • openssl pkcs12 -in C:\PathToThePFXfile\myPFXfileName.pfx -out certificate.txt -nodes

This will extract the cert to a text file where you can grap the public and private keys and save them in text as a .crt and .key file.