liveBook · Manning

Certificate

As explained in Data Pipelines with Apache Airflow, Second Edition

A digital certificate is a signed data structure that binds an identity to a public key and includes information for validating that binding.

A digital certificate is a signed data structure that binds an identity to a public key. In HTTPS, the web server shares the certificate while keeping its matching private key secret. The browser uses the certificate to assess the server connection before encrypted communication begins. section 16.4.1 section 16.4.2

A certificate participates in HTTPS through several related steps:

  • The server returns a certificate containing a publicly sharable key. section 16.4.1
  • The browser and server establish a session key; asymmetric encryption protects the exchange, while symmetric encryption protects subsequent traffic. section 16.4.1
  • A certificate authority can provide the certificate, or an operator can create a self-signed certificate for local use. section 16.4.2
  • Browsers generally trust certificates from recognized stores; self-signed certificates trigger warnings until explicitly trusted. section 16.4.2

Configure HTTPS for Airflow locally

Generate a self-signed certificate with OpenSSL, then point Airflow at the two files: `openssl req -x509 -newkey rsa:4096 -sha256 -nodes -days 365 -keyout privatekey.pem -out certificate.pem -extensions san -config <(echo "[req]"; echo distinguished_name=req; echo "[san]"; echo subjectAltName=DNS:localhost,IP:127.0.0.1) -subj "/CN=localhost"`. Configure `AIRFLOW__API__SSL_CERT=/path/to/certificate.pem` and `AIRFLOW__API__SSL_KEY=/path/to/privatekey.pem`. Airflow then serves the UI at `https://localhost:8080`; keep the private key secret and add the self-signed certificate to the local trust store if appropriate. section 16.4.2

How Data Pipelines with Apache Airflow, Second Edition covers it

How deep it goes
Explains public keys, HTTPS handshakes, self-signing, trust warnings, and configuration, but not certificate-authority internals.
Examples
Uses browser locks and warnings, localhost:8080, an OpenSSL command, and Airflow SSL environment variables.
What it assumes
Assumes basic HTTP awareness, then contrasts HTTP with HTTPS and introduces public and private keys.
What you can do after
Operate/configure Airflow HTTPS with certificate and private-key files, generate a self-signed certificate, and recognize trust warnings.
How it connects
Connects certificates with HTTPS, TLS, public-key cryptography, private keys, symmetric encryption, and certificate authorities.

Also explained in

Compare how 15 books explain certificate →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Pipelines with Apache Airflow, Second Edition. The section links point to the parts of the book it draws on.