How to fix certificate subject does not match configureed hostname issue in SSL

1.8k views Asked by At

I'm trying to do a secured transfer to syslog server via tcp from a device. I have generated certificates in server side and copied the cacert.pem to client side. When i try to send a message from to server i receive following error.

"Certificate subject does not match configured hostname; hostname='10.17.31.33', certificate='SP'"

Please have a look at following config files

Server Side config:

tcp

 (

     port(1999)

         tls

          (

             ca_dir("/etc/syslog-ng/ras.d/demoCA/")

              key_file("/etc/syslog-ng/ras.d/my_ipv4-server.key")

             cert_file("/etc/syslog-ng/ras.d/my_ipv4-server.csr")

             peer_verify(optional-untrusted)

          )

 );

 };

Client side config:

destination df_remote_1 {tcp("10.17.31.33" port(1999)

 tls(ca_dir("/etc/syslog-ng/ca.d")));};

 log { source(s_all); filter(f_remote); destination(df_remote_1);};

I'm new to syslog someone please help me understand the issue and fix it.

0

There are 0 answers