- API REST complète pour gestion Infrastructure à Clé Publique - Authentification JWT sur tous les endpoints (sauf login) - Hiérarchie de certificats (Root CA, Sub-CA, End Certificates) - Abstraction de stockage avec MemoryStore et MongoStore - Configuration centralisée via variables d'environnement - Support déploiement Docker Compose avec MongoDB - Tests unitaires pour sérialisation des clés RSA - Documentation complète avec exemples API
25 lines
270 B
Makefile
25 lines
270 B
Makefile
.PHONY: build run test clean install-deps
|
|
|
|
install-deps:
|
|
go mod download
|
|
go mod tidy
|
|
|
|
build: install-deps
|
|
go build -o pkiapi ./cmd/main.go
|
|
|
|
run: build
|
|
./pkiapi
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
clean:
|
|
rm -f pkiapi
|
|
go clean
|
|
|
|
fmt:
|
|
go fmt ./...
|
|
|
|
lint:
|
|
golangci-lint run ./...
|