api return wrong cert valid_to

Started by Continuity, July 23, 2025, 10:51:32 AM

Previous topic - Next topic
Hi all

I found an interesting (maybe XD) bug.
We renewed the Web TLS self signed certificate, since it was going to expire.
From Web, System->Trust->Certificates, edit the Web GUI TLS certificate, and select "Reissue and replace certificate".
Now from web gui it say that the cert is valid from "Jul 22, 2025 3:27 PM" to "Aug 23, 2026 3:27 PM", but from /api/trust/cert/search, it say:
{"uuid":"03d3107f-b5bb-4aa4-8b27-81e85ec64253","refid":"687f91c1c5cf6","descr":"Web GUI TLS certificate","caref":"self-signed","rfc3280_purpose":"id-kp-serverAuth","name":"\/CN=cs-opnsensem.prv.continuity.srl\/C=NL\/ST=Zuid-Holland\/L=Middelharnis\/O=OPNsense self-signed web certificate","valid_from":"1753190857","valid_to":"1787491657","in_use":"1"}
valid_to":"1787491657 is equal to Wed, 23 Jul 2025 08:21:16 GMT

Version is 24.7.2

Other with same problem ? or do you know how to resolve ? We monitor the cert validity with zabbix, so we have the warning up... not a good things


Nope:

# date -r 1787491657
Sun Aug 23 15:27:37 CEST 2026

Also see: https://www.unixtimestamp.com/
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+