herd-community icon indicating copy to clipboard operation
herd-community copied to clipboard

[Bug]: Securing site uses other site's certificate

Open sebastiansulinski opened this issue 3 months ago • 2 comments

Platform

macOS

Operating system version

15.6.1 (24G90)

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.22.3 (Build: 55)

PHP Version

PHP 8.4 (8.4.12)

Bug description

When I use the herd secure or use the gui lock icon to secure the site, it uses other site's certificate i.e. the project directory is processor and I run herd secure processor - the site shows without certificate and when I check the certificate status (using Chrome) it shows certificate for domain auth.test which is another project residing within the auth directory.

Running herd links shows an empty table:

+------+-----+-----+------+-------------+
| Site | SSL | URL | Path | PHP Version |
+------+-----+-----+------+-------------+

Running herd secured returns:

+----------------+-------------------------+
| Site           | Valid Until             |
+----------------+-------------------------+
| auth.test      | 2026-09-23 09:16:27 GMT |
| processor.test | 2026-09-26 16:25:10 GMT |
+----------------+-------------------------+

Running herd parked returns a long list (I have tons of projects I work on) amongst them:

+----------------------------------+-----+----------------------------------------------+--------------------------------------------------+-----+---------+
| Site                             | SSL | URL                                          | Path                                             | PHP | Node    |
+----------------------------------+-----+----------------------------------------------+--------------------------------------------------+-----+---------+
| processor                        |     | https://processor.test                       | /Users/seb/code/processor                      | 8.4 | v23.7.0 |

However when previewed in the Google Chrome or any other browser:

Image

Steps to reproduce

Instructions as above.

Relevant log output


sebastiansulinski avatar Sep 24 '25 14:09 sebastiansulinski

We're unable to reproduce this locally. Do you run into this issue with every site?

mpociot avatar Oct 30 '25 09:10 mpociot

@mpociot it was on, but I've since reinstalled Herd and rather than parking directory, add each site whenever new one is needed manually - this way it seem to work. Didn't have much time to test it any further.

sebastiansulinski avatar Oct 30 '25 09:10 sebastiansulinski