Commit Graph
10 Commits
Author SHA1 Message Date
slawek 9c84e82672 feat: Bring Go and Python implementations to feature parity
test-go.yaml / test-go (push) Successful in 1m27s
test-python.yaml / test-python (push) Successful in 1m36s
Go:
- Read and write simple-ca.json shared with the Python implementation
- Add make-crl and revoke-cert commands and record certificate history
- Rename --aia-base-url to --ca-publish-base-url
- Add CRL Distribution Point extension to issuing CA and leaf
  certificates
- Take days and issuing_ca defaults from simple-ca.json
- Include email SANs in server certificates
- Reject IPv4 SANs with out-of-range octets
- Record existing issuing CAs and rebuild the CA bundle
- Print errors once

Python:
- Add make-cert --type server|user and email SANs
- Reject IPv4 SANs with out-of-range octets
- Skip make-ca when the root CA exists and no issuing CA is given
- Build ca_bundle.pem from issuing CA subdirectories
- Accept a bare filename in make-pfx and drop the root key requirement
- Honour explicit --days values and reject values below 1
- Persist and increment CRL numbers in simple-ca.json

Update README and add tests for the new behaviour.
2026-10-16 14:20:04 +02:00
slawek 935167ca8c Refactor simple-ca: Remove JSON config and streamline AIA URL handling
/ test-shell (push) Successful in 11s
/ test-python (push) Successful in 25s
/ test-go (push) Successful in 41s
- Removed the JSON configuration structure and related functions.
- Introduced plain text file for AIA base URL management.
- Updated CA and certificate creation functions to directly read/write AIA URL.
- Simplified CA bundle rebuilding logic by directly reading subdirectories.
- Enhanced test coverage for CA and certificate creation, including PFX generation.
- Adjusted test cases to reflect changes in directory structure and file handling.
2026-05-24 21:40:06 +02:00
slawek cb858a96b1 Remove simple-ca module and its associated files
/ test-python (push) Successful in 49s
/ test-go (push) Failing after 4m44s
- Deleted go.mod and go.sum files for the simple-ca module.
- Removed main.go file containing the implementation of the simple-ca tool.
2026-05-24 16:47:43 +02:00
slawek 16c228d2b1 Refactor CA management and certificate generation
/ test-bash (push) Failing after 3s
/ test-python (push) Successful in 18s
/ test-go (push) Successful in 9m50s
- Removed the legacy simple-ca.sh script, consolidating functionality into Go code.
- Introduced a JSON configuration file (simple-ca.json) to manage CA settings, including validity periods and AIA base URLs.
- Enhanced the makeCA function to utilize configuration values for CA creation and AIA URL management.
- Updated makeCert and makePFX functions to support configuration-driven behavior.
- Improved error handling and user feedback throughout the CA and certificate generation processes.
- Added support for using Apple's OpenSSL for PKCS#12 file generation.
2026-05-24 14:39:47 +02:00
slawek 93fc382f9a feat: Implement JSON configuration loading and saving for CA settings
/ test-bash (push) Successful in 13s
/ test-python (push) Successful in 58s
/ test-go (push) Successful in 9m36s
2026-05-24 13:13:39 +02:00
slawek 215bd25fc7 fix: Update OpenSSL path to absolute for consistency across environments
/ test-bash (push) Successful in 14s
/ test-python (push) Successful in 15s
/ test-go (push) Successful in 9m38s
2026-05-24 12:52:44 +02:00
slawek e342c4ced7 feat: Add generate-mobileconfig.py script for creating Apple mobileconfig profiles
/ test-bash (push) Successful in 13s
/ test-python (push) Successful in 48s
/ test-go (push) Successful in 10m9s
2026-05-24 12:50:03 +02:00
slawek 1cae1a87da Enhance argument parsing in CA commands with detailed help messages and default values
/ test-bash (push) Successful in 12s
/ test-python (push) Failing after 8s
/ test-go (push) Failing after 13m44s
2026-05-10 18:02:00 +02:00
slawek c043410436 Update: replace hash symlink with CA bundle for certificate verification
/ test (push) Successful in 17s
2026-04-24 23:25:44 +02:00
slawek c29537c9e6 Added a convertion of Bash script to Python. 2026-04-24 23:02:57 +02:00