Benaah's picture
Upload folder using huggingface_hub
059ec0d verified
|
Raw History Blame Contribute Delete
835 Bytes
# Documenso signing certificate
Documenso requires a signing certificate to digitally sign documents.
The compose file mounts this directory read-only into the container at
`/opt/documenso/cert`, and the app looks for `cert.p12` inside it.
## Generate a self-signed cert (dev only)
```bash
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem \
-days 365 -nodes -subj "/CN=MicProtocol Documenso"
openssl pkcs12 -export -out scripts/documenso-cert/cert.p12 \
-inkey key.pem -in cert.pem \
-passout pass:"$(openssl rand -hex 32)"
rm key.pem cert.pem
```
Then set in `.env`:
```
DOCUMENSO_SIGNING_PASSPHRASE=<the passphrase you used above>
```
## Production
Use a CA-issued signing certificate (e.g. from a qualified trust
provider). Never ship the cert or passphrase in git — keep both
out of version control.