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 11 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 9 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 9 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 3 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 3 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin