Files
clement 7c3cd15129
Python application / build (push) Successful in 1m24s
Add a README.md file
2026-11-03 17:21:53 +01:00

30 lines
941 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Serveur et client ACME jouet
============================
## Installation
Ce projet utilise [uv](https://docs.astral.sh/uv/) pour la gestion des dépendances.
Une fois cloné, générer un certificat pour l'autorité de certification (auto-signé ou signé par une autre autorité de certification) et démarrer un serveur de développement :
```bash
./init.sh
uv run uvicorn app.main:app
```
Le serveur ainsi lancé est disponible sur [`http://localhost:8000`](http://localhost:8000/docs).
## Génération d'un certificat pour un domaine
Une fois le serveur en cours lancé, utiliser la commande `./certbot.sh [OPTIONS] <domaine>` pour générer une clé et obtenir un certificat. Par exemple :
```bash
./certbot.sh localhost
```
Si le serveur est sur une autre machine, il est possible de spécifier l'adresse du serveur avec l'option `--acme-server` :
```bash
./certbot.sh --acme-server http://acme-server:8000 $HOSTNAME
```