Closed rsfurlan90 closed 2 years ago
Nevermind, I figured out what went wrong. I was trying to run the script as a customization of my code-server container (i.e. inside custom-cont-init.d with sudo at the beginning). Turns out that it creates the certificate but it will be available only to sudoers.
Tried to run it (without sudo) in the context of code-server default user "abc" and voilá. All good.
Was able to confirm that by running below commands:
sudo dotnet dev-certs https --check --verbose # certificate found
dotnet dev-certs https --check --verbose # no certificates available
Hello, I have been trying to use this script to generate a valid self-signed certificate for my code-server container which is Ubuntu based (by linuxserver) and it runs just fine, with no errors. I can also see the .pem file in /etc/ssl/certs/ and .crt file in /usr/local/share/ca-certificates. Running "openssl verify dotnet-devcert.crt" tells me that certificate is OK too. When I try to run debug, however, I am getting this error:
Could you please advice?