Just about every guide I have seen for using TLS with rsyslog involves generating a self signed cert and using that. If the boxes are already set up with a legit signed cert how do you set up the client and server to simply use that?
|
There's no big difference to setting this up if your cert is "legit". A widely trusted certificate is characterized by having its trust anchor (aka the root or CA certificate) seeded in the OS's or browser's trust store. Assume you have The big difference to a self signed cert in setting this up is that you might have to include intermediate certificates on the CA file. If the intermediates are present in your system's truststore, all you have to do is to point rsyslog there (/etc/ssl/certs/ca-certificates.crt on Ubuntu, YMMV) The docs (here, here and here) sum up nicely how to set up TLS: The server config is done like this:
The client's config should look like this:
|
|||||
|
|
If you have your own legit certificates: mycompany.ca mycompany.crt mycompany.key On the server:Uncomment:
Add:
On the client:
Restart syslog To test the results on the server run:
Verify Selinux, The certs path, The certs expiration date and permissions. |
||||
|
|