Ad Widget

Collapse

TLS PSK Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CPT
    Junior Member
    • Jul 2023
    • 6

    #1

    TLS PSK Issue

    Hello,
    Sorry if this was answered elsewhere and I wasn't able to find it. I'm new to Zabbix and I'm trying to set up encryption for agent communications. I am creating a PSK as outlined in the Zabbix documentation, which appears to be just a normal openssl command. When I try to put the generated code into the Zabbix GUI, I am given the following error: "Incorrect value for field "tls_psk": an even number of hexadecimal characters is expected." Anyone know what I am doing wrong here? I am using the output from the command "openssl rand -hex 32​" as mentioned here https://www.zabbix.com/documentation...generating_psk . Thanks in advance.
  • solution
    Senior Member
    • Jun 2020
    • 269

    #2
    It's simple
    in zabbix gui​, click in host --> Encryption
    Enable PSK
    PSK Indentity: key identify
    PSK: **Hexadecimal**


    Examble:
    Click image for larger version

Name:	image.png
Views:	1520
Size:	19.3 KB
ID:	467615

    Wellington

    Comment

    • CPT
      Junior Member
      • Jul 2023
      • 6

      #3
      Hey Solution,
      Thank you for providing that info. Turns out I had typoed something when I was trying to set it up in the Zabbix GUI. I apprecaite the help though. I'm getting a new error when I try to start the agent on the server though. It's saying that connection type "unecrypte" is not allowed. I've updated the conf file for psk, so I'm not sure what I've missed.

      Comment

      • solution
        Senior Member
        • Jun 2020
        • 269

        #4
        You need to configure the agent to use PSK.

        Link:


        restart the agent after changing the conf.

        Wellington​​​​​​​

        Comment

        • CPT
          Junior Member
          • Jul 2023
          • 6

          #5
          Thanks I got it working. I appeciate the help.

          Comment

          Working...