All keys are generated using ECDSA 384 and are stored encrypted with chacha20poly1305
Directory | Used for |
---|---|
/var/tinyPKI/reqests |
The folder for incoming certificate request |
/var/tinyPKI/reqests/webserver |
The folder for incoming WebServer certificate request |
/var/tinyPKI/reqests/client |
The folder for incoming Client certificate request |
/var/tinyPKI/reqests/code |
The folder for incoming CodeSigning certificate request |
/var/tinyPKI/reqests/server |
The folder for incoming Server certificate request |
/var/tinyPKI/reqests/ocsp |
The folder for incoming OCSP certificate request |
/var/tinyPKI/reqests/ca |
The folder for incoming Subordinary or Intermediate certificate requests to the tiny_pki_root |
/var/tinyPKI/certificates |
The folder for ISSUED certificates by the tiny_pki_sub |
/var/tinyPKI/certificates/ca |
The folder for ISSUED ca certificates by the tiny_pki_root |
/var/tinyPKI/revoke |
The folder for certificates which should be revoked by the tiny_pki_sub |
type | Cert | CRL |
---|---|---|
Root | 12 years | 120 days |
Sub | 6 years | 90 days |
EE | 1 year | ❌ |
Submitting a certificate request is a straightforward process:
- Place your request in the directory
/var/tinyPKI/requests
or in any subdirectory of this path, depending on your certificate needs. Refer to the directory table to select the correct directory. - Retrieve the container ID of your tiny_pki_sub instance.
- Execute the following command:
docker exec -it <id of your tiny_pki_SUB container> sh -c tpkisub
. - Enter your passphrase when prompted. If there are any errors, they will be displayed in the command line.
- If no errors occur, your certificate will be issued, and you can find it at
/var/tinyPKI/certificates
.
Submitting a Sub CA certificate request is a straightforward process:
- Place your request in the
/var/tinyPKI/requests/ca
directory. - Retrieve the container ID of your tiny_pki_root instance.
- Execute the following command:
docker exec -it <id of your tiny_pki_ROOT container> sh -c tpkiroot
. - Enter your passphrase of the Root CA when prompted. If there are any errors, they will be displayed in the command line.
- If no errors occur, your certificate will be issued, and you can find it at
/var/tinyPKI/certificates/ca
.
Revoking a certificate:
- Place the certificate you want to remove in the
/var/tinyPKI/revoke
directory. - Retrieve the container ID of your tiny_pki_sub instance.
- Execute the following command:
docker exec -it <id of your tiny_pki_sub container> sh -c tpkisub
. - Enter your passphrase of the CA when prompted. If there are any errors, they will be displayed in the command line.
- If no errors occur, your certificate will be revoked, and you can find a new CRL at
/var/tinyPKI/publish
. - Copy the *.crl to your web server.