Ad Widget

Collapse

Javascript self signed certificates

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BigSmooth
    Member
    • Jun 2023
    • 46

    #1

    Javascript self signed certificates

    Hello,
    I am trying to monitor a kubernetes cluster via the API url.
    I finally managed to make a curl request work:
    Code:
    curl -vk https://192.168.1.30:32774/api/v1/nodes --header "Authorization: Bearer $TOKEN" |head
    ...
    {
      "kind": "NodeList",
      "apiVersion": "v1",
      "metadata": {
        "resourceVersion": "5199"
      },
      "items": [
        {
    ...
    Unfortunately, I keep receiving this error in log:
    Code:
    [ Kubernetes ] ERROR: Error: cannot get URL: Couldn't connect to server.
    As it is a self-signed certificate, I am suspecting that "response = request.get(url);" tries to validate it.
    Do you know if it possible to avoid that validation in a Javascript item? Or maybe to import the certificate into any keystore that Zabbix is using.

    Regards,
    Olivier
  • Answer selected by BigSmooth at 26-02-2024, 17:50.
    BigSmooth
    Member
    • Jun 2023
    • 46

    It was due to selinux

    Comment

    • BigSmooth
      Member
      • Jun 2023
      • 46

      #2
      It was due to selinux

      Comment

      Working...