New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contact to localhost
TLD broken in Debian Bookworm, curl: (60) SSL: no alternative certificate subject name
#6040
Comments
A usage of I tested this on Arch-based Linux and macOS arm64, so I assume this is related to A workaround is to simply not use the |
localhost
TLD doesn't work in Debian Bookwormlocalhost
TLD broken in Debian Bookworm, curl: (60) SSL: no alternative certificate subject name
You probably already know about this, but the other thing about "localhost" is it typically resolves to both an IPV4 and an IPV6 address. In the Docker world, we have only IPV4. |
Oh, I have the same problem. But often (everytime?) you can interconnect with the project-Container urls: Hope this helps EDIT: I am currently using it to connect two symfony projects through a rest api |
@Schwepsi are you using current HEAD or the v1.23.0-alpha1 release? This issue is about the new ddev-webserver based on Debian Bookworm, and those are its first appearance. |
@rfay, yes, I know 👍, I have a setting to prefer IPv4 over IPv6 in my system https://wiki.archlinux.org/title/IPv6#Prefer_IPv4_over_IPv6
@Schwepsi, yes, thanks, I mentioned this workaround in the OP, it's just not always suitable (when you need to access the "real" URL in another project). |
I'm closing this as not planned, but I'm happy to reopen it if a workaround is found. Current workarounds:
|
Is there an existing issue for this?
Output of
ddev debug test
Expand `ddev debug test` diagnostic information
Expected Behavior
It should be working as before, in DDEV v1.22.7, I tracked in down to Debian Bookworm change in:
The closest issues about this error in Ubuntu (fixed):
Actual Behavior
Communication between DDEV project doesn't work if the target site uses
localhost
TLD.To reproduce I created two projects,
test-project-1
withlocalhost
TLD andtest-project-2
withddev.site
TLD.docker-compose.communicate.yaml
intest-project-1
:docker-compose.communicate.yaml
intest-project-2
:Use
curl
inside theddev-test-project-2-web
container:Steps To Reproduce
Create two projects with
index.php
and.ddev/docker-compose.communicate.yaml
:Allow sudo access to edit the hosts file for
test-project-1.localhost
:curl works with
*.ddev.site
:curl doesn't work with
*.localhost
:Check if alternative certificate subject name 'test-project-1.localhost' exists
curl
by name works both ways:And cleanup:
Anything else?
It's working with DDEV v1.22.7:
But it doesn't work with DDEV HEAD:
The text was updated successfully, but these errors were encountered: