
#IPSECURITAS EXPORT INSTALL#
The default libreswan package install for RHEL/Fedora/CentOS uses an empty password. When creating a database, you are prompted for a password. This can be done using:īy default the NSS db is created in /var/lib/ipsec/nss/ If you are not using a packaged libreswan version, you might need to create a new NSS db before you can start libreswan. The "ipsec import" command is a simple wrapper around this utility.Ĭreating the NSS db for use with libreswan

If you are migrating from openswan with NSS or libreswan 3.13 or older to libreswan 3.14, then you will be converted to the new NSS SQL database format. Libreswan is currently in the process of obtaining a FIPS certification for. NSS as shipped by Red Hat is a FIPS certified library. While PreShared Key (PSK) calculations are done using NSS, the actual preshared key ("secret") is still stored in /etc/crets. X.509 keys and certificates are referenced using their "nickname" instead of their filename in /etc/nf. Private RSA keys (raw RSA as well as X.509 based private RSA keys) are stored inside NSS and those are not referenced in /etc/crets. Both IKEv1 and IKEv2 operations are performed using NSS. Pluto hands over work using the PK11 interface to NSS and never has direct access to the private key material itself. Instead, it uses the PK11 wrapper API of NSS irrespective of the cryptographic device used. Pluto does not access any private keys or data itself. The advantage of using NSS is that pluto does not need to know in detail how the cryptographic device works. The cryptographic device is usually the "soft token" but can also be a Hardware Security Module (HSM). The NSS library exports a PKCS#11 API for the application to communicate to a cryptographic device. NSS does not handle the IPsec crypto operations inside of the kernel these are handled seperately by NETKEY or the KLIPS kernel module. NSS is a userspace library utilized by the libreswan IKE daemon 'pluto' for cryptographic operations.

8 Exporting a CA(?) certificate to load on another libreswan machine.

6 Configuring certificates in nf and crets.5.2 To create a user certificate signed by the above CA.5.1 To create a certificate authority (CA certficate).3 Creating the NSS db for use with libreswan.
