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!
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
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?
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
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.
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