2.13. Configuring an NFS client with TLS support
If the server supports NFS with TLS encryption, you can configure the client accordingly and use the xprtsec=tls parameter to mount it with TLS support.
Prerequisites
- You have configured the NFS server with TLS encryption. For details, see Configuring an NFS server with TLS support.
-
You have installed the
ktls-utilspackage.
Procedure
Import the Certificate Authority (CA) certificate to the systems’s truststore:
# cp ca.crt /etc/pki/ca-trust/source/anchors # update-ca-trustEnable and start the
tlshdservice:# systemctl enable --now tlshd.serviceMount an NFS share by using TLS encryption:
# mount -o xprtsec=tls server.example.com:/nfs/projects/ /mnt/
Verification
Verify that the client successfully mounted NFS share with TLS support:
# journalctl -u tlshd … Apr 01 08:37:56 client.example.com tlshd[10688]: Handshake with server.example.com (192.0.2.1) was successful