in Security

Export certificate and private key from a pfx file

When moving certificates from Windows servers to Linux you may need to export the private key and certificate from a pfx file. This is how it’s done:

1. Export the private key

openssl pkcs12 -in cert.pfx -nocerts -out cert.key.wpass

Replace cert.pfx with the certificate exported from Windows. The private key will be exported to cert.key.wpass including a password that you need to selecting in this step

2. Remove the password from the private key (optional but may be required when the key is used with Apache or other background services)

openssl rsa -in cert.key.wpass -out cert.key

Here you need to type the password selected in step 1

3. Export the certificate

openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.cer

Now you have the certificate and key in cert.key and cert.cer which can be used with any service

Write a Comment

Comment

Webmentions

  • SEO

    … [Trackback]

    […] Read More here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • elangqq login

    … [Trackback]

    […] Information on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • wedeqq

    … [Trackback]

    […] Here you will find 22980 more Information on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • kompas qq

    … [Trackback]

    […] Read More on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • Planets

    … [Trackback]

    […] Find More to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • Stock Market ATH Gold Silver Geo Macro Largest Wealth Transfer Ever

    … [Trackback]

    […] Read More to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • Royal Online

    … [Trackback]

    […] Read More here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • https://www.theqoupon.com/ coupons and promo codes

    … [Trackback]

    […] There you can find 87827 additional Information to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • www.boyaqq2.club

    … [Trackback]

    […] Here you can find 6151 additional Info on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • Thrive Fitness Brookhaven 404 431 2639 Personal Trainer Atlanta Ga

    … [Trackback]

    […] Find More Info here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • here

    … [Trackback]

    […] Read More on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • www.rajaqq8.com

    … [Trackback]

    […] Find More to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • Amira

    … [Trackback]

    […] Read More on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • www.rajaqqhoki.club

    … [Trackback]

    […] There you will find 30500 more Info on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • Klik Dokter

    … [Trackback]

    […] Find More here on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • fowling board pin layout

    … [Trackback]

    […] Find More here on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • duratrans nyc

    … [Trackback]

    […] Find More here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • musim qq

    … [Trackback]

    […] Here you can find 15739 additional Information on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • dadu poker

    … [Trackback]

    […] Find More here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • qiuqiu99

    … [Trackback]

    […] There you can find 305 additional Info on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • mejaqq pkv

    … [Trackback]

    […] There you will find 19647 additional Info on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • cialisis

    … [Trackback]

    […] Find More on to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • wire qwest

    … [Trackback]

    […] Read More Information here on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • Skrota bilen gratis

    … [Trackback]

    […] There you can find 46024 more Information on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • xo 88

    … [Trackback]

    […] Find More Info here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • poker 99

    … [Trackback]

    […] Read More Information here on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • dang ky tai khoan fun88

    … [Trackback]

    […] Here you will find 39293 more Information to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • tailgate mural

    … [Trackback]

    […] Read More on on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • custom decals for trucks

    … [Trackback]

    […] Information to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • เลขเด็ด

    … [Trackback]

    […] Here you can find 50826 more Information on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • Gianna

    … [Trackback]

    […] There you will find 49736 additional Info to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • food pictures

    … [Trackback]

    […] Information on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • Freelance WordPress Developer London

    … [Trackback]

    […] Read More here on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • اجاره ماشین

    … [Trackback]

    […] There you will find 91488 additional Information to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • relex watch

    … [Trackback]

    […] Find More on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • 안전바카라

    … [Trackback]

    […] Read More Information here on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • datasgp

    … [Trackback]

    […] Find More Information here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • datasgp

    … [Trackback]

    […] Info on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • breitling fake watch

    … [Trackback]

    […] Here you will find 71890 more Information on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • i99casino

    … [Trackback]

    […] Read More to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • mens sales

    … [Trackback]

    […] Find More Info here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • 88 slots

    … [Trackback]

    […] Find More on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • xi to online

    … [Trackback]

    […] Read More Info here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • NSFW Gif

    … [Trackback]

    […] Find More here to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • iPhone XR Screen Replacement for LCD Digitizer Amazon Best Seller

    … [Trackback]

    […] Information to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • muzica noua

    … [Trackback]

    […] Info to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • 420 Cash Flow

    … [Trackback]

    […] There you can find 19154 additional Information on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • spa packages with beauty salon in tucson

    … [Trackback]

    […] There you can find 28045 additional Info on that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]

  • w88id

    … [Trackback]

    […] Find More on to that Topic: aip.im/2013/04/export-certificate-and-private-key-from-a-pfx-file/ […]