Home > Linux, Microsoft, Quickie, Security > Quickie: Use pfx certificate in linux

Quickie: Use pfx certificate in linux

When you export certificate in Windows with private key, you export it to .pfx file with password. When you want to use this certificate in linux you need to convert pfx file into .crt and .key files. You can use following commands to convert it:

[root@nagios]# openssl pkcs12 -in nagios.pfx -clcerts -nokeys -out nagios.crt
Enter Import Password:
MAC verified OK
[root@nagios]# openssl pkcs12 -in nagios.pfx -nocerts -nodes -out nagios.key
Enter Import Password:
MAC verified OK

Now you have two files .crt and .key which can be used in linux.

That’s all folks,

Categories: Linux, Microsoft, Quickie, Security Tags:
  1. Adam
    November 19th, 2024 at 10:55 | #1

    Debian12 > Use *-legacy* parameter

  1. No trackbacks yet.