Description
Hello,
I've followed the instructions to get a certificate for the Tailscale internal domain name on my server, however, it runs into "Error[Permission denied]"
as per the server-status page. It keeps on trying and producing the same error.
edit: clarification: I'm able to access the server-status and get the error when I use my current self-signed certificate.
Admittedly, I'm new to this and at this point have no clue where to look further. But I'm sure I've missed something. Could you please help? I'm on Debian 12.
The setup:
<MDomain mydomain.ts.net>
MDCertificateProtocol tailscale
MDCertificateAuthority file://localhost/var/run/tailscale/tailscaled.sock
</MDomain>
<VirtualHost *:443>
ServerName mydomain.ts.net
MDContactEmail [email protected]
MDCertificateAgreement accepted
SSLEngine on
<Location "/server-status">
SetHandler server-status
</Location>
</VirtualHost>
The server error log produces the following, with md:notice
suspiciously missing. The terminal says md
and ssl
are already enabled, when I try to enable them.
I can also see the md folder in /etc/apache2/
, as well as md.load
in etc/apache2/mods-enabled/
.
[Sat Oct 26 22:56:08.692177 2024] [ssl:warn] [pid 1147233:tid 1147233] AH10085: Init: mydomain.ts.net:443 will respond with '503 Service Unavailable' for now. There are no SSL certificates configured and no other module contributed any.
[Sat Oct 26 22:56:08.695700 2024] [ssl:error] [pid 1147233:tid 1147233] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=Apache Managed Domain Fallback / issuer: CN=Apache Managed Domain Fallback / serial: 74CF31289A7FCEA69A5A183D9CD95CB5ED4E90DD / notbefore: Oct 26 20:53:57 2024 GMT / notafter: Nov 9 20:53:57 2024 GMT]
[Sat Oct 26 22:56:08.695731 2024] [ssl:error] [pid 1147233:tid 1147233] AH02604: Unable to configure certificate mydomain.ts.net:443:0 for stapling
[Sat Oct 26 22:56:08.783796 2024] [ssl:warn] [pid 1147234:tid 1147234] AH10085: Init: mydomain.ts.net:443 will respond with '503 Service Unavailable' for now. There are no SSL certificates configured and no other module contributed any.
[Sat Oct 26 22:56:08.785842 2024] [ssl:error] [pid 1147234:tid 1147234] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=Apache Managed Domain Fallback / issuer: CN=Apache Managed Domain Fallback / serial: 74CF31289A7FCEA69A5A183D9CD95CB5ED4E90DD / notbefore: Oct 26 20:53:57 2024 GMT / notafter: Nov 9 20:53:57 2024 GMT]
[Sat Oct 26 22:56:08.785853 2024] [ssl:error] [pid 1147234:tid 1147234] AH02604: Unable to configure certificate mydomain.ts.net:443:0 for stapling
I've added the flag to the tailscaled socket with the user Apache ID: www-data.
I've read the GitHub page several times, but I'm out of my depth :(
Thank you for your time!