You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 9, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+48-1Lines changed: 48 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ This repository contains `mod_md`, a module for Apache httpd that helps you to m
12
12
13
13
Both functions work well together, but you can use one without the other. If you do not want the ACME/Let's Encrypt parts, there is ["Just the Stapling, Mam!"](#just-the-stapling-mam)
14
14
15
-
***NEW:***`mod_md` has added support for [External Account Binding](#a-key-to-bind-them) that let's you use Apache ACME with more CAs!
15
+
***NEW:***users of [tailscale](https://tailscale.com) secure networks can use trusted certificates for their internal domain names. See [the chapter about tailscale](#tailscale) for more information.
16
16
17
17
## Thanks
18
18
@@ -57,6 +57,7 @@ into your Apache server log where `mod_md` logs its version at startup.
57
57
*[Get a Wildcard Cert](#how-to-get-a-wildcard-cert)
58
58
*[Use Other Certificates](#how-to-use-other-certificates)
59
59
*[Have two certs for one Host](#how-to-have-two-certs-for-one-host)
60
+
*[Use tailscale certificates](#tailscale)
60
61
- Stapling
61
62
*[Staple all my certificates](#how-to-staple-all-my-certificates)
62
63
*[Staple some of my certificates](#how-to-staple-some-of-my-certificates)
@@ -720,6 +721,52 @@ needs to track those, they will not come without restrictions. But several EAB v
720
721
same time seems common practise.
721
722
722
723
724
+
# Tailscale
725
+
726
+
The secure networking provided by [tailscale](https://tailscale.com) allows you to connect your own devices
727
+
in a very easy way without fiddling with firewalls and without public IP addresses. It's a bit of magic.
728
+
729
+
In its recent versions, it can also give you domain names and your own subdomain underneath the `*.ts.net` suffix. Something like `*.headless-chicken.ts.net` can be yours and your machines appear as, for example, `my-raspberry.headless-chicken.ts.net` in your own network.
730
+
731
+
But if you run a webserver on it, you'd need a certificate that your browser accept. And tailscale also does
732
+
that magic and negotiates with Let's Encrypt to provide you with a valid one (and renews it).
733
+
734
+
Via `mod_md`, you can make use of that service (if you are on **linux** for now). To stick with the example above, you'd configure:
735
+
736
+
```
737
+
<MDomain my-raspberry.headless-chicken.ts.net>
738
+
MDCertificateProtocol tailscale
739
+
</MDomain>
740
+
741
+
<VirtualHost *:443>
742
+
ServerName my-raspberry.headless-chicken.ts.net
743
+
SSLEnging on
744
+
...
745
+
</VirtualHost>
746
+
```
747
+
748
+
This works just like certificates from Let's Encrypt. `mod_md` will give you status information on the cert
749
+
and also try to renew it and give you notifications via `MDMessageCmd`. OCSP stapling should be available as
750
+
well, but I have not tested that.
751
+
752
+
One thing to beware: Apache's attempts to renew, e.g. get a new certificate from the tailscale demon, are
753
+
not necessarily in sync. You might want to adjust your `MDRenewWindow` to only trigger right after tailscale
754
+
should have gotten a new one.
755
+
756
+
Also, for server restarts, the same rules apply as for ACME certificates.
757
+
758
+
Is there a dependency between the Apache service and your tailscale daemon? **No**. Both will
759
+
start and operate independent of each other. Apache will start also if your tailscale daemon is down. Just like your Apache will work when Let's Encrypt is not reachable for a while.
760
+
761
+
**Caveat**: if your Apache is *also* reachable from the public internet, the tailscale domain name will not
762
+
give you enhanced security. Anyone who can contact your server can ask for any domain in `*.ts.net`. There are
763
+
a myriad of options to make secure setups and you should consult the tailscale documentation on how/when/if
764
+
security in a tailscale network can be managed.
765
+
766
+
**Credits**: the nice and friendly [Caddy server](https://caddyserver.com) was the first HTTP server to add
767
+
tailscale support a couple of days ago. Which inspired me to strive for second place.
768
+
769
+
723
770
# Just the Stapling, Mam!
724
771
725
772
If you just want to use the new OCSP Stapling feature of the module, load it into your apache and configure
0 commit comments