mirror of
https://github.com/ananthb/hassl.git
synced 2026-09-20 16:27:04 +00:00
No description
- Go 97.9%
- Nix 2.1%
| .github/workflows | ||
| internal/haproxy | ||
| test/integration | ||
| .envrc | ||
| .gitignore | ||
| .goreleaser.yaml | ||
| flake.lock | ||
| flake.nix | ||
| go.mod | ||
| go.sum | ||
| hassl | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
hassl
CLI tool for managing SSL certificates on HAProxy via the Data Plane API.
Installation
go install github.com/tritonmedia/hassl@latest
Usage
# List certificates
hassl --url http://haproxy:5555 --user admin --password secret ls
# List with file paths
hassl --url http://haproxy:5555 --user admin --password secret ls -l
# Get certificate metadata
hassl --url http://haproxy:5555 --user admin --password secret get example.com.pem
# Upload a certificate
hassl --url http://haproxy:5555 --user admin --password secret upload example.com.pem /path/to/cert.pem
# Delete a certificate
hassl --url http://haproxy:5555 --user admin --password secret rm example.com.pem
# Delete without confirmation
hassl --url http://haproxy:5555 --user admin --password secret rm -f example.com.pem
Environment Variables
| Variable | Description |
|---|---|
HAPROXY_URL |
HAProxy Data Plane API URL |
HAPROXY_USER |
API username |
HAPROXY_PASSWORD |
API password |
HAPROXY_INSECURE |
Skip TLS verification |
HAPROXY_TIMEOUT |
Request timeout (default: 30s) |
Commands
list/ls- List all certificatesget- Get certificate metadataupload/up- Upload a certificate from a PEM filedelete/rm- Delete a certificate