How darthrater78/cert-generator works
Cert Generator is a Docker-hosted certificate authority and Windows endpoint-management product. Its main workflow is to authenticate an administrator, create CAs and issue or revoke certificates, then publish reachable revocation data and export or install certificates. Cert Generator Pal pairs Windows PCs with the server so they can request certificates, install them locally, renew them, and request approved service bindings. The graph also preserves SSH, account security, activity, and optional Cloudflare relay capabilities. Some connections are documented in the README; unsampled implementation details are not inferred.
Main entry points: server.py Web server and routes · pal.py Pal server API · db.py Application database · pki.py CA and certificate routes
Components 27
Web application
- Web server and routes
app/server.py - Web interface
app/static/app.js
Certificate authority
- CA and certificate routes
app/routes/pki.py - Certificate and CRL engine
app/crypto_engine.py - Certificate export bundles
app/install_bundle.py - SSH key management
app/routes/ssh.py
Revocation publishing
- Cloudflare controls
app/routes/cloudflare.py - Cloudflare API client
app/cloudflare.py - Per-CA CRL Workers
app/crl_worker.py - CRL publisher
app/crl_publisher.py - Direct CRL server
app/crl_local_server.py - Relay service
app/relay.py
Windows Pal
- Pal server API
app/routes/pal.py - Pal desktop interface
pal/src/CertGeneratorPal/MainForm.cs - Pal device operations
pal/src/CertGeneratorPal/Operations.cs - Pal API client
pal/src/CertGeneratorPal.Core/PalClient.cs - Paired device state
pal/src/CertGeneratorPal/DeviceState.cs - Device keys
pal/src/CertGeneratorPal/Keys.cs - Windows service binding
pal/src/CertGeneratorPal/Binder.cs - Encrypted relay client
pal/src/CertGeneratorPal.Core/Relay.cs
Security and operations
- Sign-in and accounts
app/routes/auth.py - Activity log
app/activity.py - Application database
app/db.py - Authentication and key safeguards
app/security.py - Account and security settings
app/routes/settings.py
Other components
- Administrator
- Windows user
Connections 36
- Administrator → Web interface: uses
README.md - Web interface → Web server and routes: requests
- Web server and routes → Sign-in and accounts: registers
app/server.py - Web server and routes → CA and certificate routes: registers
app/server.py - Web server and routes → Cloudflare controls: registers
app/server.py - Web server and routes → Pal server API: registers
app/server.py - Web server and routes → SSH key management: registers
app/server.py - Sign-in and accounts → Application database: reads/writes
app/routes/auth.py - Sign-in and accounts → Authentication and key safeguards: uses
app/routes/auth.py - CA and certificate routes → Certificate and CRL engine: uses
app/routes/pki.py - CA and certificate routes → Application database: reads/writes
app/routes/pki.py - CA and certificate routes → Certificate export bundles: creates bundles
app/routes/pki.py - CA and certificate routes → Per-CA CRL Workers: manages
app/routes/pki.py - Cloudflare controls → Per-CA CRL Workers: manages
app/routes/cloudflare.py - Cloudflare controls → Cloudflare API client: uses
app/routes/cloudflare.py - Per-CA CRL Workers → CRL publisher: pushes signed CRLs
app/crl_worker.py - Per-CA CRL Workers → Cloudflare API client: deploys Workers
app/crl_worker.py - CRL publisher → Certificate and CRL engine: signs CRLs
app/crl_publisher.py - CRL publisher → Application database: reads/writes
app/crl_publisher.py - Windows user → Pal desktop interface: uses
README.md - Pal desktop interface → Pal device operations: invokes
pal/src/CertGeneratorPal/Program.cs - Pal device operations → Pal API client: requests server actions
pal/src/CertGeneratorPal/Operations.cs - Pal device operations → Paired device state: updates
pal/src/CertGeneratorPal/Operations.cs - Pal device operations → Device keys: uses
pal/src/CertGeneratorPal/Operations.cs - Pal device operations → Windows service binding: delegates binding
pal/src/CertGeneratorPal/Operations.cs - Pal API client → Pal server API: calls API
- Pal API client → Encrypted relay client: seals relay requests
pal/src/CertGeneratorPal.Core/PalClient.cs - Encrypted relay client → Relay service: exchanges envelopes
- Pal server API → Application database: reads/writes
app/routes/pal.py - Pal server API → Certificate and CRL engine: uses
app/routes/pal.py - Pal server API → CRL publisher: uses
app/routes/pal.py - Pal server API → Direct CRL server: uses
app/routes/pal.py - Account and security settings → Application database: reads/writes
app/routes/settings.py - Account and security settings → Authentication and key safeguards: uses
app/routes/settings.py - Web server and routes → Activity log: uses
app/server.py - Web server and routes → Application database: uses
app/server.py