Securing Airflow – setup of SSL Certificate

Author: Omid Vahdaty 7.10.2019​

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

——————————————————————————————————————————
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,

feel free to contact me via LinkedIn:

1 thought on “Airflow – setup of SSL Certificate – HTTPS example”

Leave a Reply