How amanmaurya-406/digital-certificates works
Digital Certificates is a command-line PKI framework for creating RSA keys, CSRs, self-signed CAs, and issued certificates, with DER/CER parsing and text conversion. The main workflow starts at the interactive menu: it dispatches key, request, CA, or issuance actions; issuance loads a CSR and CA material, verifies the request, and writes a certificate. The graph also includes cryptographic and ASN.1/DER layers. Some implementation details are unsampled, so relationships among those components are limited to indexed references and documented capabilities.
Main entry points: main.c Interactive menu · generateCertificate.c Certificate generation · createCSR.c CSR creation · cer2txt.c CER file parsing
Components 16
PKI workflows
- Interactive menu
src/main.c - PKI data models
include/config.h - Object lifecycle utilities
src/utils.c
Keys and crypto
- RSA key generation
src/RSA_generateKey.c - Key encoding and loading
src/encodeKey.c - RSA operations
src/RSA_cipher.c - SHA-512
src/sha512.c
Requests and certificates
- CSR creation
src/createCSR.c - CSR verification
src/verifyCSR.c - CA generation
src/generate_CA.c - Certificate generation
src/generateCertificate.c
Encoding and inspection
- PKI serialization
src/serialize.c - ASN.1 primitives
src/asn1.c - CER file parsing
src/cer2txt.c - Certificate text view
src/cer2txt.c
Other components
- CLI user
Connections 26
- CLI user → Interactive menu: selects action
src/main.c - Interactive menu → RSA key generation: generates key
src/main.c - Interactive menu → CSR creation: creates request
src/main.c - Interactive menu → CA generation: creates CA
src/main.c - Interactive menu → CER file parsing: loads CSR, CA
src/main.c - Interactive menu → Certificate generation: issues certificate
src/main.c - Interactive menu → Certificate text view: converts output
src/main.c - RSA key generation → Key encoding and loading: writes key
src/RSA_generateKey.c - CSR creation → RSA key generation: uses key operations
src/createCSR.c - CSR creation → PKI serialization: serializes request
src/createCSR.c - CSR creation → SHA-512: hashes request
src/createCSR.c - CSR creation → RSA operations: signs request
src/createCSR.c - Certificate generation → CSR verification: verifies request
src/generateCertificate.c - Certificate generation → PKI serialization: serializes certificate
src/generateCertificate.c - Certificate generation → SHA-512: hashes certificate data
src/generateCertificate.c - Certificate generation → RSA operations: signs certificate
src/generateCertificate.c - Certificate generation → CER file parsing: writes certificate
src/generateCertificate.c - CA generation → Certificate generation: creates self-signed certificate
src/generate_CA.c - Key encoding and loading → ASN.1 primitives: encodes key fields
src/encodeKey.c - PKI serialization → ASN.1 primitives: uses primitives
src/serialize.c - CER file parsing → ASN.1 primitives: parses DER fields
- CER file parsing → Certificate text view: renders text
src/cer2txt.c - Interactive menu → Key encoding and loading: loads key files
src/main.c - CSR creation → PKI data models: builds request data
src/createCSR.c - Certificate generation → PKI data models: builds certificate data
src/generateCertificate.c - Interactive menu → Object lifecycle utilities: initializes and frees data
src/main.c