Spaces:
Sleeping
Sleeping
|
Download scripts/documenso-cert/README.md from Benaah/MicProtocol: direct link, hf CLI and curl.
- Browser
- Download file 835 Bytes
-
https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/scripts/documenso-cert/README.md
- Command line
-
hf download hf://spaces/Benaah/MicProtocol/scripts/documenso-cert/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/scripts/documenso-cert/README.md
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. | |