Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. HTTPS Certificate Not Working On Linux

HTTPS certificate not working on Linux

By LauraZ , 25 July, 2023
Forums
Gurux.DLMS.AMI

Hello! I think I'm having a problem with the https certificate. When I run the docker the application opens in Not Secure mode, also when I tried to create a new agent I got this error:

fail: Gurux.DLMS.AMI.Agent.Program[0]
The SSL connection could not be established, see inner exception.

I am using the latest version available in docker hub and I am in a Linux machine. To create the certificate I used this code (the code that it is indicated in docker hub):

dotnet dev-certs https -ep ${HOME}/.aspnet/https/Gurux.DLMS.AMI.Server.pfx -p mypassword

dotnet dev-certs https --trust

What may be the problem?

Thank you very much!

Profile picture for user Kurumi

Kurumi

2 years 9 months ago

Hi, This was tested and it…

Hi,

This was tested and it worked without problems. What is the exact error message?
What Linux distro you are using?

BR,
Mikko

EmbeddedDan

2 years 7 months ago

Hi Kurumi I have the same…

Hi Kurumi

I have the same issue with running the agent.
Gurux.DLMS.AMI, Version 1.0.0.0,from the about window, is running in a docker container on a Debian 11 Virtual Machine.
The agent is: agent_4.0.2310.2301
The error message is:
dotnet Gurux.DLMS.AMI.Agent.dll
starting Gurux.DLMS.Agent version 4.0.2310.2301
Welcome to use Gurux.DLMS.AMI.
Gurux.DLMS.AMI address: [https://localhost:8001]
https://localhost
Enter agent name: [debian-test]

Enter Personal Access Token:
F309C.............
fail: Gurux.DLMS.AMI.Agent.Program[0]
The SSL connection could not be established, see inner exception.

What are your recommendations?

Profile picture for user Kurumi

Kurumi

2 years 7 months ago

Hi EmbeddedDan, Please,…

Hi EmbeddedDan,

Please, create a new topic if you have a new question.

First, don't use localhost. Use IP address instead of. That is helping with some environments.

Check also can you see the certificate if you run this?

ls %USERPROFILE%\.aspnet\https\

BR
Mikko

abackers

1 year 2 months ago

Did someone ever get this…

Did someone ever get this fixed?

I am having the same problem with the https certificate. GUI https is "not secure", and agent returns error: The SSL connection could not be established, see inner exception.

Running Docker on Ubuntu 22

Gurux.DLMS.AMI.Server.pfx exists in $home/.aspnet/https

Running dotnet dev-certs -ep $home/.aspnet/https/Gurux.DLMS.AMI.Server.pfx -p xxxx
A valid HTTPS certificate is already present

Running dotnet dev-certs https --trust
Trusting the HTTPS development certificate was requested. Trust is per-user and may require additional configuration. See https://aka.ms/dev-certs-trust for more information.
Successfully trusted the existing HTTPS certificate.

Profile picture for user Kurumi

Kurumi

1 year 2 months ago

Hi, It seems that something…

Hi,

It seems that something has changed. This was tested with an older version, and now when it was tested with version 12 (bookworm) the certificate is not trusted.

This will be checked, and I'll inform you next week what to do to resolve this.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin