Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. TLS connection to backend database

TLS connection to backend database

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 15.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z
    Z
    zsing82
    wrote on last edited by
    #1

    I have Netxms 3.8 installed on Debian 10.  On a separate machine, I have MariaDB 10.5 installed on Debian 10. (I used DEBs from MariaDB repo)  I'd like to force TLS between NetXMS Server & MariaDB Server.  I have MariaDB setup with SSL enabled:

    MariaDB [(none)]> show global variables like '%ssl%';
    +---------------------+--------------------------------+
    | Variable_name       | Value                          |
    +---------------------+--------------------------------+
    | have_openssl        | YES                            |
    | have_ssl            | YES                            |
    | ssl_ca              | /etc/mysql/ssl/ca.pem          |
    | ssl_capath          |                                |
    | ssl_cert            | /etc/mysql/ssl/server-cert.pem |
    | ssl_cipher          |                                |
    | ssl_crl             |                                |
    | ssl_crlpath         |                                |
    | ssl_key             | /etc/mysql/ssl/server-key.pem  |
    | version_ssl_library | OpenSSL 1.1.1d  10 Sep 2019    |
    +---------------------+--------------------------------+
    

    and created the database and user:

    MariaDB [(none)]> show grants for [email protected];
    +---------------------------------------------------------------------+
    | Grants for [email protected]                                   |
    +---------------------------------------------------------------------+
    | GRANT USAGE ON *.* TO `netxms`@`netxms.mgmt.lan` REQUIRE X509       |
    | GRANT ALL PRIVILEGES ON `db_netxms`.* TO `netxms`@`netxms.mgmt.lan` |
    +---------------------------------------------------------------------+
    

    Here is my NetXMS configuration:

    ## Logging
    # Log file name
    LogFile=/var/log/netxmsd
    
    # Increase logging verbosity, 0 (only errors) to 9 (verbose debug)
    DebugLevel=0
    
    ## Database configuration.
    DBDriver=mariadb.ddr
    DBServer=mariadb.mgmt.lan
    DBName=db_netxms
    DBLogin=netxms
    DBPassword=
    

    But I can't seem to get a connection working.  NXDBMGR INIT tells me Access denied, probably because it's not presenting the X509 cert & key to MariaDB. Where do I drop my user cert & key in NetXMS, and how do I configure mariadb driver to use X509?

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hello!

      You can turn on TLS in driver by adding

      DBDrvParams = enforceTLS=true

      to netxmsd.conf. User authentication with X.509 certificates is not supported.

      Best regards,
      Victor

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups