TLS / HTTPs
Overview
CS-DRIVE supports SSL/TLS encryption for secure communications. By default, it runs on:
HTTP port: 80 (configurable via
-http-portflag)HTTPS port: 443 (configurable via
-https-portflag)
Certificate Requirements
You need two files:
SSL/TLS certificate file (
.crt)Private key file (
.key)
Default Configuration
By default, the application looks for certificates at:
Certificate:
/root/domain.crtPrivate Key:
/root/domain.key
Setup Steps
Obtain SSL/TLS Certificate
You can get a certificate from a Certificate Authority (CA)
For development, you can create a self-signed certificate
Place Certificate Files
Put your certificate file (
.crt) and private key file (.key) in the paths listed aboveMake sure the application has read permissions for these files
Start the Application
# Using default ports ./filedrive # Using custom ports ./filedrive -http-port 8080 -https-port 8443
Important Notes
The application runs both HTTP and HTTPS servers simultaneously
Make sure your certificates are valid and not expired
Keep your private key secure and restrict access permissions
For production environments, always use certificates from trusted Certificate Authorities
Troubleshooting
If you encounter SSL/TLS issues:
Verify certificate and key file paths are correct
Check file permissions
Ensure certificate is valid and not expired
Verify certificate and private key match
tags:
TLS / HTTPs
Secure connection
443