Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import PKCS#12 into Seahorse

I have a PKCS#12 file which I have successfully imported into Firefox. Now, I would like to import the same file into Linux in order to use public-Key cryptography with these keys. I have tried to import it using Seahorse, but it failed. Maybe PKCS#12 files are designed to be used only with browsers? I would like to know...

Thanks!

like image 344
srus Avatar asked May 06 '11 11:05

srus


People also ask

What is a PKCS file?

PKCS#12 (also known as PKCS12 or PFX) is a binary format for storing a certificate chain and private key in a single, encryptable file. PKCS#12 files are commonly used to import and export certificates and private keys on Windows and macOS computers, and usually have the filename extensions . p12 or . pfx .

How do I import my PKI certificate?

Right-click Enterprise PKI, and then select Manage AD Containers. Select the NTAuthCertificates tab, and then select Add. On the File menu, select Open. Locate and then select the CA certificate, and then select OK to complete the import.


1 Answers

PKCS#12 is a standard made by RSA for PKI (public key infrastructure). This consists of a tree of certificates and their accompanying keys. Your PKCS#12 contains one leaf certificate and its key, possibly together with some higher up certificates (it's an upside down tree).

PGP, which is used by Seahorse is a different way of handling public/private keys, based on a web of trust (google it). It is not directly compatible with PKI(X) which you have now. You could extract the key and generate a PGP key out of it, but you would have to reestablish trust anyway, so you might as well use a different key pair...

like image 170
Maarten Bodewes Avatar answered Sep 28 '22 05:09

Maarten Bodewes