[Nut-upsuser] Question about SSL and a specific phoenixcontact_modbus UPS model
Ioannis Iliopoulos
Ioannis.Iliopoulos at powerfactors.com
Tue Dec 30 07:31:03 GMT 2025
Greetings,
As this year comes to a close, I wish you a brilliant New Year ahead!
I have two questions that after some research I could not find out the answer and apologies if the answer was on plain sight and I didn't notice.
1) Is about phoenixcontact_modbus driver where in the manual even though it mentions supporting :
This driver should support the PhoenixContact QUINT-UPS industrial DC UPS, model 2320461 and all compatible models.
The model 2320461 is not actually included in the driver (only from 2.8.0 - 2.8.2 versions is included):
Posting also the codeblock of the driver in nut-2.8.3
```
#include <modbus.h>
#include "nut_stdint.h"
#define DRIVER_NAME "NUT PhoenixContact Modbus driver"
#if !(defined NUT_MODBUS_LINKTYPE_STR)
# define NUT_MODBUS_LINKTYPE_STR "unknown"
#endif
#define DRIVER_NAME "NUT PhoenixContact Modbus driver (libmodbus link type: " NUT_MODBUS_LINKTYPE_STR ")"
#define DRIVER_VERSION "0.08"
#define CHECK_BIT(var,pos) ((var) & (1<<(pos)))
#define MODBUS_SLAVE_ID 192
#define QUINT_5A_UPS_1_3AH_BATTERY_PARTNUMBER 2320254
#define QUINT_5A_UPS_1_3AH_BATTERY_DESCRIPTION "QUINT-UPS/24DC/24DC/5/1.3AH"
#define QUINT_10A_UPS_PARTNUMBER 2320225
#define QUINT_10A_UPS_DESCRIPTION "QUINT-UPS/24DC/24DC/10"
#define QUINT_20A_UPS_PARTNUMBER 2320238
#define QUINT_20A_UPS_DESCRIPTION "QUINT-UPS/24DC/24DC/20"
#define QUINT_40A_UPS_PARTNUMBER 2320241
#define QUINT_40A_UPS_DESCRIPTION "QUINT-UPS/24DC/24DC/40"
#define QUINT4_10A_UPS_PARTNUMBER 2907067
#define QUINT4_10A_UPS_DESCRIPTION "QUINT4-UPS/24DC/24DC/10/USB"
#define QUINT4_20A_UPS_PARTNUMBER 2907072
#define QUINT4_20A_UPS_DESCRIPTION "QUINT4-UPS/24DC/24DC/20/USB"
#define QUINT4_40A_UPS_PARTNUMBER 2907078
#define QUINT4_40A_UPS_DESCRIPTION "QUINT4-UPS/24DC/24DC/40/USB"
#define TRIO_5A_UPS_PARTNUMBER 2866611
#define TRIO_5A_UPS_DESCRIPTION "TRIO-UPS/1AC/24DC/5"
#define TRIO_2G_5A_UPS_PARTNUMBER 2907160
#define TRIO_2G_5A_UPS_DESCRIPTION "TRIO-UPS-2G/1AC/24DC/5"
#define TRIO_2G_10A_UPS_PARTNUMBER 2907161
#define TRIO_2G_10A_UPS_DESCRIPTION "TRIO-UPS-2G/1AC/24DC/10"
#define TRIO_2G_20A_UPS_PARTNUMBER 1105556
#define TRIO_2G_20A_UPS_DESCRIPTION "TRIO-UPS-2G/1AC/24DC/20"
typedef enum
{
NONE,
QUINT_UPS,
QUINT4_UPS,
TRIO_UPS,
TRIO_2G_UPS
} models;
/* Variables */
static modbus_t *modbus_ctx = NULL;
static int errcount = 0;
static int mrir(modbus_t * arg_ctx, int addr, int nb, uint16_t * dest);
static models UPSModel = NONE;
/*
For the QUINT ups (first implementation of the driver) the modbus addresses
are reported in dec format,for the QUINT4 ups they are reported in hex format.
The difference is caused from the way they are reported in the datasheet,
keeping them in the same format as the datasheet make more simple the maintenence
of the driver avoiding conversions while coding.
*/
/* driver description structure */
upsdrv_info_t upsdrv_info = {
DRIVER_NAME,
```
Are there any plans to include/support this model again ?
2) is about SSL verification,
According to the following code I get the message warning Certificate verification is disabled.
```
upslogx(LOG_INFO, "Connected to NUT server %s in SSL", host);
if (certverify == 0) {
/* you REALLY should set CERTVERIFY to 1 if using SSL... */
upslogx(LOG_WARNING, "Certificate verification is disabled");
```
I noticed UPSC uses TRYSSL and doesn't force ssl. Even when I use in upsmon FORCESSL 1 and CERTVERIFY 1 the upsmon seems to be forcing the ssl communication indeed after some tests. So wanted to ask when I use upsc and the message showing is:
Connected to NUT server localhost in SSL
Certificate verification is disabled
The certificate verification message is not referring to upsmon ? It seems a bit misleading so I dont know if I have something wrong in the configuration.
Thank you very much in advance!
Kind regards,
Ioannis Iliopoulos
Specialist, IT Authoring Design Scada & EMS
Phone: --
[cid:93e59cbd-e50d-4741-bbb8-343a3d15b98a]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20251230/db8e9a96/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-s41qp51h.png
Type: image/png
Size: 13272 bytes
Desc: Outlook-s41qp51h.png
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20251230/db8e9a96/attachment-0001.png>
More information about the Nut-upsuser
mailing list