1
0
Fork 0
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%
Find a file
2026-03-28 17:56:11 +05:30
.github/workflows add ci workflow 2026-03-28 17:56:11 +05:30
internal/haproxy Expand API coverage 2026-03-19 00:27:26 +05:30
test/integration Expand API coverage 2026-03-19 00:27:26 +05:30
.envrc Expand API coverage 2026-03-19 00:27:26 +05:30
.gitignore hassl is a CLI and Go library for the HAProxy Dataplane API 2026-01-22 22:23:44 +05:30
.goreleaser.yaml hassl is a CLI and Go library for the HAProxy Dataplane API 2026-01-22 22:23:44 +05:30
flake.lock Expand API coverage 2026-03-19 00:27:26 +05:30
flake.nix Expand API coverage 2026-03-19 00:27:26 +05:30
go.mod hassl is a CLI and Go library for the HAProxy Dataplane API 2026-01-22 22:23:44 +05:30
go.sum hassl is a CLI and Go library for the HAProxy Dataplane API 2026-01-22 22:23:44 +05:30
hassl Expand API coverage 2026-03-19 00:27:26 +05:30
LICENSE Add GNU AGPL v3 License 2026-01-22 22:16:18 +05:30
main.go Expand API coverage 2026-03-19 00:27:26 +05:30
README.md hassl is a CLI and Go library for the HAProxy Dataplane API 2026-01-22 22:23:44 +05:30

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 certificates
  • get - Get certificate metadata
  • upload / up - Upload a certificate from a PEM file
  • delete / rm - Delete a certificate