Channel 7, 8, and 9 in Figure 7-1, SSL Communication Channels.
Generate the Certificate Authority (CA) Certificate.
Create a private key.
certtool --generate-privkey --outfile ca-key.pem
Create the self-signed certificate.
certtool --generate-self-signed --load-privkey ca-key.pem --outfile ca.pem
Generate a certificate for the local syslog client (private key).
Create a private key for the syslog agent.
certtool --generate-privkey --outfile rslclient-key.pem --bits 2048
Generate a certificate request for the syslog client.
certtool --generate-request --load-privkey rslclient-key.pem --outfile request.pem
Generate a certificate and sign it with the CA private key.
certtool --generate-certificate --load-request request.pem --outfile rslclient-cert.pem --load-ca-certificate ca.pem --load-ca-privkey ca-key.pem
Generate a certificate for the remote syslog server (private key)
Remove the previously generated request.pem.
Create a private key for the syslog server.
certtool --generate-privkey --outfile rslserver-key.pem --bits 2048
Generate a certificate request for the rsyslog server.
certtool --generate-request --load-privkey rslserver-key.pem --outfile request.pem
Generate a machine certificate and sign it with the CA private key.
Copy certificates from CA to rsyslog server and to rsyslog client.
certtool --generate-certificate --load-request request.pem --outfile rslserver-cert.pem --load-ca-certificate ca.pem --load-ca-privkey ca-key.pem
Configure the syslog server for TLS.
Sample nam.conf:
# Increase the amount of open files rsyslog is allowed, which includes open tcp sockets # This is important if there are many clients. # http://www.rsyslog.com/doc/rsconf1_maxopenfiles.html $MaxOpenFiles 2048 # make gtls driver the default $DefaultNetstreamDriver gtls # certificate files generated on RHEL6 and stored in /root $DefaultNetstreamDriverCAFile /etc/pki/rsyslog/ca.pem $DefaultNetstreamDriverCertFile /etc/pki/rsyslog/rslserver-cert.pem $DefaultNetstreamDriverKeyFile /etc/pki/rsyslog/rslserver-key.pem
Configure the syslog agent for TLS.
Sample /etc/rsyslog.d/nam.conf:
# make gtls driver the default $DefaultNetstreamDriver gtls # certificate files $DefaultNetstreamDriverCAFile /etc/pki/rsyslog/ca.pem $DefaultNetstreamDriverCertFile /etc/pki/rsyslog/rslclient-cert.pem $DefaultNetstreamDriverKeyFile /etc/pki/rsyslog/rslclient-key.pem #### GLOBAL DIRECTIVES #### $ActionSendStreamDriverAuthMode x509/name $ActionSendStreamDriverMode 1 # run driver in TLS-only mode
NOTE:Making any changes on the Auditing UI overwrites the manual changes made in the nam.conf file. The changes must be manually done in each component.