How 61131/nginx-http-est works
Main Components
a. Client Layer:
• EST Clients (devices/systems requiring certificates)
• Both initial enrollment and re-enrollment paths
• TLS connection
b. Nginx Server Layer:
• Main Nginx Server (with SSL/TLS termination)
• EST Module Components (group the following as submodules):
• Authentication Handler (ngx_http_est_auth.c)
• Certificate Operations (ngx_http_est_x509.c)
• PKCS7 Processing (ngx_http_est_pkcs7.c)
• TLS Operations (ngx_http_est_tls.c)
• Private Key Management (ngx_http_est_privkey.c)
• ASN.1 Processing (ngx_http_est_asn1.c)
c. External Components:
• Authentication Backend (for HTTP-based authentication)
• Certificate Authority (CA) Storage:
• CA Root Certificate
• CA Private Key
• Serial Number Storage
• CSR Attributes Store
Flow Directions
a. Primary Operations:
• /cacerts (CA certificate distribution)
• /csrattrs (CSR attributes request)
• /simpleenroll (Initial enrollment)
• /simplereenroll (Certificate renewal)
• /serverkeygen (Server-side key generation)
b. Authentication Flows:
• TLS Client Authentication path
• HTTP Basic Authentication path to backend
• Proof-of-Possession validation flow
Additional Notes
• Version/RFC compliance indicators
• Optional components (like HTTP authentication)
• Where POP validation occurs
• Certificate lifecycle flows
Remember to include a clear title: "Nginx EST Module System Architecture" and appropriate metadata (version, date, author).