[PR #3688] [MERGED] feat: Add option to provide custom SSL certificate paths #5507

Closed
opened 2026-10-31 20:47:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3688
Author: @sviatoslav-gusev
Created: 1/21/2026
Status: ✅ Merged
Merged: 1/21/2026
Merged by: @MHSanaei

Base: main ← Head: feat/custom-ssl-support


📝 Commits (1)

  • ddb3ffa feat: add option to use existing custom SSL certificates

📊 Changes

2 files changed (+128 additions, -6 deletions)

View changed files

📝 install.sh (+63 -3)
📝 update.sh (+65 -3)

📄 Description

What is the pull request?

Description:

This PR adds a 3rd option to the SSL setup menu in both install.sh and update.sh.

Why:

Currently, the script forces ACME/Let's Encrypt generation. This is inconvenient for users who:

  • Use a reverse proxy (like Caddy/Nginx) that handles certificates externally.
  • Already have certificates generated by other means.

Such discussion detected: https://github.com/MHSanaei/3x-ui/issues/3676

Changes:

Added "Option 3: Custom SSL Certificate".

It prompts the user for .crt and .key file paths.

Includes validation (checks if file exists, is readable, and not empty).

Passes these paths directly to x-ui cert command without invoking acme.sh.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots

feature

🔄 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/MHSanaei/3x-ui/pull/3688 **Author:** [@sviatoslav-gusev](https://github.com/sviatoslav-gusev) **Created:** 1/21/2026 **Status:** ✅ Merged **Merged:** 1/21/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/custom-ssl-support` --- ### 📝 Commits (1) - [`ddb3ffa`](https://github.com/MHSanaei/3x-ui/commit/ddb3ffaa66e5668bab14db885420bb42a043594e) feat: add option to use existing custom SSL certificates ### 📊 Changes **2 files changed** (+128 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `install.sh` (+63 -3) 📝 `update.sh` (+65 -3) </details> ### 📄 Description ## What is the pull request? ### Description: This PR adds a 3rd option to the SSL setup menu in both install.sh and update.sh. ### Why: Currently, the script forces ACME/Let's Encrypt generation. This is inconvenient for users who: - Use a reverse proxy (like Caddy/Nginx) that handles certificates externally. - Already have certificates generated by other means. Such discussion detected: https://github.com/MHSanaei/3x-ui/issues/3676 ### Changes: Added "Option 3: Custom SSL Certificate". It prompts the user for .crt and .key file paths. Includes validation (checks if file exists, is readable, and not empty). Passes these paths directly to x-ui cert command without invoking acme.sh. ## Which part of the application is affected by the change? - [x] Frontend - [x] Backend ## Type of Changes - [ ] Bug fix - [x] New feature - [ ] Refactoring - [ ] Other ## Screenshots <img width="1023" height="585" alt="feature" src="https://github.com/user-attachments/assets/cce83f24-009a-4b7f-8b2b-34a6cc2a9290" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:26 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5507
No description provided.