<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/tls-certificates-for-internal-services-done-right-yyfpvyhee" -->

---
title: TLS certificates for internal services done right
description: A practical guide to setting up TLS certificates for internal services without self-signed certificate headaches. The approach uses split-horizon DNS so that a...
canonical: https://daily.dev/posts/tls-certificates-for-internal-services-done-right-yyfpvyhee
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: TLS certificates for internal services done right | daily.dev
og:description: A practical guide to setting up TLS certificates for internal services without self-signed certificate headaches. The approach uses split-horizon DNS so that a...
og:url: https://daily.dev/posts/tls-certificates-for-internal-services-done-right-yyfpvyhee
og:image: https://api.daily.dev/og/posts/YYfPvyHEe.png
og:image:alt: TLS certificates for internal services done right
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TLS certificates for internal services done right

**[Hacker News](https://daily.dev/sources/hn)** · 7 min read · 0 upvotes · 0 comments

## Summary

A practical guide to setting up TLS certificates for internal services without self-signed certificate headaches. The approach uses split-horizon DNS so that a public domain resolves to an internal IP for VPN clients while remaining publicly resolvable for Let's Encrypt's http-01 ACME challenge. Nginx is configured to bind only to the VPN network interface, acting as a WAF layer. The post covers the full setup with NetBird for VPN/DNS, acme.sh for certificate issuance and auto-renewal via cron, and a bonus section on using TLS SANs with CNAMEs to share one certificate across multiple internal subdomains.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://tuxnet.dev/posts/tls-for-internal-services>

## Similar posts on daily.dev

- [I self-host anything I want behind CGNAT, and here's how you can too](https://daily.dev/posts/i-self-host-anything-i-want-behind-cgnat-and-here-s-how-you-can-too-vyjujrni5) · XDA Developers · 0 upvotes · 0 comments
- [How to Encrypt Kubernetes Traffic with cert-manager, Let's Encrypt, and Internal TLS](https://daily.dev/posts/how-to-encrypt-kubernetes-traffic-with-cert-manager-let-s-encrypt-and-internal-tls-9zjo9p9lm) · freeCodeCamp · 14 upvotes · 1 comments
- [How to Issue Let's Encrypt Wildcard Certificates with Certbot](https://daily.dev/posts/how-to-issue-let-s-encrypt-wildcard-certificates-with-certbot-qalki0nog) · DigitalOcean Community · 1 upvotes · 0 comments

---

Tags: [#nginx](https://daily.dev/tags/nginx)

[View this post on daily.dev](https://daily.dev/posts/tls-certificates-for-internal-services-done-right-yyfpvyhee)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"TLS certificates for internal services done right","url":"https://daily.dev/posts/tls-certificates-for-internal-services-done-right-yyfpvyhee","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/tls-certificates-for-internal-services-done-right-yyfpvyhee"},"datePublished":"2026-07-09T16:03:58.937Z","dateModified":"2026-07-09T16:41:19.690Z","description":"A practical guide to setting up TLS certificates for internal services without self-signed certificate headaches. The approach uses split-horizon DNS so that a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0b375a29cb537e3411e28327e6181708?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0b375a29cb537e3411e28327e6181708?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/tls-certificates-for-internal-services-done-right-yyfpvyhee","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"nginx","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"TLS certificates for internal services done right"}]}
```

