[PR #2257] [MERGED] Support custom SSL certificates for the signal service #19034

Open
opened 2026-08-05 04:09:13 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2257
Author: @benniekiss
Created: 7/11/2024
Status: Merged
Merged: 7/16/2024
Merged by: @mlsmaycon

Base: mainHead: custom_ssl


📝 Commits (10+)

📊 Changes

2 files changed (+62 additions, -18 deletions)

View changed files

📝 signal/README.md (+2 -0)
📝 signal/cmd/run.go (+60 -18)

📄 Description

Describe your changes

This PR adds the ability to provide custom SSL certificates to the signal service. Most of the code was adapted from management/cmd/management.go since it already offers the functionality I was looking to implement.

Two flags have been added, --cert-file and --cert-key, which accept a string pointing to a file path for the SSL certificate and key. When --letsencrypt-domain is set, these options are ignored.

This is my first try at go, so please let me know if anything needs refactored and fixed!

Along with https://github.com/netbirdio/dashboard/pull/399, closes #2242

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2257 **Author:** [@benniekiss](https://github.com/benniekiss) **Created:** 7/11/2024 **Status:** ✅ Merged **Merged:** 7/16/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `custom_ssl` --- ### 📝 Commits (10+) - [`2b4f91b`](https://github.com/netbirdio/netbird/commit/2b4f91bc069bdce1dedd1eaf0efb589b8ac198a6) allow setting pre-generated ssl cert for signal - [`c5cb6bf`](https://github.com/netbirdio/netbird/commit/c5cb6bf9a39893a897d814d021d36c61a78685a8) work on grpc listeners - [`a829feb`](https://github.com/netbirdio/netbird/commit/a829febe5790efe70f4b8df9a35f9fd0b1eba129) remove unused tlsEnabled - [`430ecc1`](https://github.com/netbirdio/netbird/commit/430ecc19bceb8115cd981f64f99d1aa10887df0d) actually configure gRPC listeners - [`20a4879`](https://github.com/netbirdio/netbird/commit/20a48798a999be1558ceb3f50270a4808f45b14e) fix syntax errors - [`68bf5f2`](https://github.com/netbirdio/netbird/commit/68bf5f2e186ed72fe83ed11504d5968d72a0cbf4) add comments - [`c931685`](https://github.com/netbirdio/netbird/commit/c931685d5cf0213b2d6d4a894dbf281e8c459777) testing a simpler approach - [`4894949`](https://github.com/netbirdio/netbird/commit/48949495719b4c474086961c6dc756e8a78a3c50) remove commented code - [`02ab7a4`](https://github.com/netbirdio/netbird/commit/02ab7a45d38282c21cea6cad7806bbc6a936e1b0) formatting - [`93499da`](https://github.com/netbirdio/netbird/commit/93499daaa8314781ba98a9ef7e95012de23eb490) update readme ### 📊 Changes **2 files changed** (+62 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `signal/README.md` (+2 -0) 📝 `signal/cmd/run.go` (+60 -18) </details> ### 📄 Description ## Describe your changes This PR adds the ability to provide custom SSL certificates to the signal service. Most of the code was adapted from [management/cmd/management.go](https://github.com/netbirdio/netbird/blob/e8c2fafccd9ebb649a3d15f1b361e09bb2b61639/management/cmd/management.go) since it already offers the functionality I was looking to implement. Two flags have been added, `--cert-file` and `--cert-key`, which accept a string pointing to a file path for the SSL certificate and key. When `--letsencrypt-domain` is set, these options are ignored. This is my first try at go, so please let me know if anything needs refactored and fixed! ## Issue ticket number and link Along with https://github.com/netbirdio/dashboard/pull/399, closes #2242 ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) - [x] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 04:09:13 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#19034