✅ Unable to configure HTTPS endpoint.
The container builds successfully but then at the end it says:
I tried running
it says that my certificate is valid but it still keeps giving me
Unable to configure HTTPS endpoint
.
I also tried completely removing docker and then adding it back. but that didn twork either. I tried removing app.UseHttpsRedirection();
from Program.cs
too. nothing seems to work at all.7 Replies
Once again the error is:
ive been trying to fix this for an hour i think that something is very wrong
when i ran the https commands above it says my cert is valid so why?
i tried too
docker + dev cert = bad idea
the dev cert is only for local development, once you are ready to host the API you're looking at providing a real https cert, probably via a reverse proxy
i dont really understand cause now i am trying to run with IIS express i think that something is wrong. but i didnt do anything out of the ordinary im going to restart my computer and see if that helps
yeah i dont really understand why its doing this, it builds and runs the image just fine but then after that i see all of this in the console. nothing i tried helped at all
i went to properties/launchoptions and made useSSL false too so im not sure why
nvm resolved
https://learn.microsoft.com/en-us/aspnet/core/security/docker-compose-https?view=aspnetcore-8.0 i did this and changed to 8080 and 8081 instead of 5000 and 5001
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
my bad i just read this cause i dont get notifications for some reason. i didnt know that though ill stop using iis. and i shouldnt need to use any certs apprently with docker so ill see about tha ttoo