In this example we are going to use self signed certificates via the below CMD. It turns out the original apache airflow instructions, assume prior knowledge:
https://airflow.apache.org/security.html#ssl
To create the self signed certificates, follow the instructions:
openssl genrsa -out private.pem 2048
openssl req -new -x509 -key private.pem -out cacert.pem -days 1095
In your airflow.cfg under [webserver] change the following keys:
web_server_ssl_cert = path/to/cacert.pem
web_server_ssl_key = path/to/private.pem
This should let you now browse Airflow via https://localhost:8080
If there No “Proceed Anyway” option on NET::ERR_CERT_INVALID in Chrome on MacOS , This solution worked for me:
- Right click, select inspect element
- click on console tab
- Copy paste
sendCommand(SecurityInterstitialCommandId.CMD_PROCEED)
press Enter
——————————————————————————————————————————
I put a lot of thoughts into these blogs, so I could share the information in a clear and useful way.
If you have any comments, thoughts, questions, or you need someone to consult with,
1 thought on “Airflow – setup of SSL Certificate – HTTPS example”