Ad Widget

Collapse

error with certificate agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • genseb
    Junior Member
    • Sep 2018
    • 4

    #1

    error with certificate agent

    Hi,

    I'm currently encountering an issue enabling TLS certificate encryption for active zabbix agent.

    When I enable TLS certificate encryption, following error appears: certificate issuer does not match for host "name_of_my_host"

    My certificate has been generated from the issuer certificate declared in my host encryption configuration on Zabbix Server web interface.

    Here the way I've built my "certification authority"

    root CA key: openssl genrsa -aes256 -out zabbix_ca.key 4096
    root ca cert: openssl req -x509 -new -key zabbix_ca.key -sha256 -days 3560 -out zabbix_ca.crt

    certificate agent:

    openssl genrsa -out zabbix_agent.key 4096
    openssl req -new -key zabbix_agent.key -out zabbix_agent.csr
    openssl x509 -req -in zabbix_agent.csr -CA zabbix_ca.crt -CAkey zabbix_ca.key -CAcreateserial -out zabbix_agent.crt -days 3650 -sha256

    The CN of the certificate is the FQDN of my server which match with the host name declared on Zabbix.

    My zabbix server is a v3.4.9 and my agent a v3.0.21

    I really don't understand why it isn't accepted.

    Thanks for your help.

    Seb.
  • klonet
    Junior Member
    • Sep 2018
    • 1

    #2
    HI,

    Do You tried to use this command to get the correct string?

    Code:
    openssl x509 -noout -issuer -subject         -nameopt esc_2253,esc_ctrl,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_rev,sname         -in zabbix_agent.crt
    It works for me

    Bye!!

    Comment

    • genseb
      Junior Member
      • Sep 2018
      • 4

      #3
      Hello,

      Thanks for your answer.

      It works!

      The issue was that I displayed my cert using following command "openssl x509 -in certificate.crt -text -noout" so the issuer was C=FR etc.

      Comment

      Working...