- Extract the client private key from the PKCS #12 file.
- Import the CA certificate.
- Import the TrueNAS certificate.
Extract the private key
Perform the following steps to extract the client private key from the PKCS #12 file:1
Open a terminal application that has OpenSSL installed.
2
Go to the directory with the PKCS #12 file.
3
Run the following OpenSSL command to extract the clear client private key from the PKCS #12 file and save it to a new The command prompts for the import password. Enter the password contained in the
PEM file:Text
pki-password.txt file.Import the CA certificate
Perform the following steps to import the CA certificate:1
Log in to the TrueNAS web interface.
2
Go to System > CAs and select [ Add ].
3
In the Type drop-down menu, select Import CA.
4
Enter a name for the CA, then paste the CA certificates from the
ca-chain.pem file into the Certificate field.5
Leave the Private Key and Passphrase fields empty and select [ Submit ].
Import the certificate
Perform the following steps to import the TrueNAS certificate:1
Log in to the TrueNAS web interface.
2
Go to System > Certificates and select [ Add ].
3
In the Type drop-down menu, select Import Certificate.
4
Enter a name for the certificate, and paste the TrueNAS certificate (
client-cert.pem) and private key (client-key.pem) into the appropriate fields.5
Leave the Passphrase field empty and select [ Submit ].

