You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alaa Ben Fatma edited this page May 3, 2021
·
1 revision
HTTPS support (Optional)
Credential digger can be deployed as a web application that runs on Flask and Gunircorn. This feature enables the use of the SSL/TLS protocol to encrypt communications so that the transferred data cannot be stolen.
How to Enable HTTPS support
A signed certificate and a private key are both needed
Set up the path to the certificate and the private key in the .env file
These two paths have to be relative to the wsgi.py file, and not absolute.
Start the docker container
How to generate a certificate and a private key
Assuming that you do not have a certificate that has been signed by a CA (Certificate Authority), you will have to generate a self-signed one by yourself using openssl:
This command line will generate a certificate cert.pem that is valid for 1 year along with a private key key.pem.
🚨 Warning
When using a self-signed certificate, the browser will show a warning that you should ignore in order to continue using the tool. The reason behind this normal behavior is that the certificate in use has not been signed by a CA (Certificate Authority) that the browser recognizes.
How to disable HTTPS support
In order to disable the HTTPS support, make sure to remove the paths to the certificate and private key in the .env file. If the paths are empty, the application will be deployed over HTTP only.