A tool to easily setup SSL for localhost development on Linux.
- Automatic self-signed SSL certificate generation
- Browser trust configuration
- Nginx proxy configuration
- Domain mapping in /etc/hosts
- Simple CLI interface
- Download the script:
sudo curl -o /usr/local/bin/ssl-proxy-manager https://raw.githubusercontent.com/rishabkumar7/linux-ssl-proxy-manager/main/ssl-proxy-manager.sh
- Make it executable:
sudo chmod +x /usr/local/bin/ssl-proxy-manager
- Install dependencies:
sudo apt-get update
sudo apt-get install -y nginx openssl libnss3-tools
Add a new domain:
sudo ssl-proxy-manager add my.custom.local localhost 3000
Remove a domain:
sudo ssl-proxy-manager remove my.custom.local
List all configured domains:
sudo ssl-proxy-manager list
- Certificate Generation: Creates self-signed SSL certificates for your custom domains
- Browser Trust: Configures Firefox, Chrome/Chromium, and system-wide certificate stores to trust your certificates
- Nginx Configuration: Sets up Nginx as a reverse proxy with proper SSL configuration
- Hosts File: Updates /etc/hosts to map your custom domains to 127.0.0.1
- Certificate not trusted: Try restarting your browser after adding a new domain
- Cannot access the domain: Make sure Nginx is running (
sudo systemctl status nginx
) - Permission denied errors: The script must be run with sudo privileges
The certificates generated by this tool are self-signed and only intended for local development. They are not suitable for production environments.
This project is under MIT License, feel free to open an issue and PR if you would like to make enhancement or fix an issue.