Skip to main content

Certificate tool for Sysadmins

Project description

Description

Easy-to-use command-line tool for certificate management.

Features

  • Simple command-line UI.

  • Good defaults, sets up common extensions automatically.

  • PGP- and password-protected private keys.

  • OCSP and CRL info settings.

  • Supports EC, RSA and DSA keys.

Dependencies

  • Python cryptography module (version >= 3.1).

  • (Optional) gpg command-line tool to decrypt files.

Summary

Generate new key:

sysca new-key              [--password-file TXT_FILE] [--out DST]
sysca new-key ec[:<curve>] [--password-file TXT_FILE] [--out DST]
sysca new-key rsa[:<bits>] [--password-file TXT_FILE] [--out DST]
sysca new-key dsa[:<bits>] [--password-file TXT_FILE] [--out DST]

Create certificate signing request:

sysca request [-h] --key KEY_FILE [--password-file PSW_FILE]
              [--out OUT_FILE] [--outform FMT] [--text] [--rsa-pss]
              [--subject DN] [--san GNAMES] [--usage USAGE] [--CA] [--path-length DEPTH]
              [--crl-urls URLS] [--issuer-urls URLS] [--ocsp-urls URLS]
              [--ocsp-must-staple] [--ocsp-must-staple-v2] [--ocsp-nocheck]
              [--permit-subtrees GNAMES] [--exclude-subtrees GNAMES]
              [--require-explicit-policy N] [--inhibit-policy-mapping N]
              [--inhibit-any N] [--add-policy POLICY]

Create selfsigned certificate:

sysca selfsign [-h] [--out OUT_FILE] [--outform FMT] [--text]
               --key KEY_FILE [--password-file PSW_FILE]
               [--not-valid-before DATE] [--not-valid-after DATE] [--days DAYS]
               [--serial-number SN] [--rsa-pss]
               [--subject DN] [--san GNAMES] [--usage USAGE] [--CA] [--path-length DEPTH]
               [--crl-urls URLS] [--issuer-urls URLS] [--ocsp-urls URLS]
               [--ocsp-must-staple] [--ocsp-must-staple-v2] [--ocsp-nocheck]
               [--permit-subtrees GNAMES] [--exclude-subtrees GNAMES]
               [--require-explicit-policy N] [--inhibit-policy-mapping N]
               [--inhibit-any N] [--add-policy POLICY]

Sign certificate signing request:

sysca sign [-h] [--out OUT_FILE] [--outform FMT] [--text] --request CSR_FILE
           --ca-info CRT_FILE --ca-key KEY_FILE [--password-file PSW_FILE]
           [--not-valid-before DATE] [--not-valid-after DATE] [--days DAYS]
           [--serial-number SN] [--reset] [--rsa-pss]
           [--subject DN] [--san GNAMES] [--usage USAGE] [--CA] [--path-length DEPTH]
           [--crl-urls URLS] [--issuer-urls URLS] [--ocsp-urls URLS]
           [--ocsp-must-staple] [--ocsp-must-staple-v2] [--ocsp-nocheck]
           [--permit-subtrees GNAMES] [--exclude-subtrees GNAMES]
           [--require-explicit-policy N] [--inhibit-policy-mapping N]
           [--inhibit-any N] [--add-policy POLICY]

Create or update CRL file:

sysca update-crl [-h] [--out OUT_FILE] [--outform FMT] [--text]
                 --ca-info CRT_FILE --ca-key KEY_FILE [--password-file PSW_FILE]
                 [--crl CRL_FILE] [--crl-number VER] [--delta-crl-number VER]
                 [--crl-scope SCOPE] [--crl-reasons REASONS] [--indirect-crl]
                 [--issuer-urls URLS] [--delta-crl-urls URLS]
                 [--last-update DATE] [--next-update DATE] [--days DAYS]
                 [--revoke-certs FN [FN ...]]
                 [--revoke-serials NUM [NUM ...]]
                 [--reason REASON] [--invalidity-date DATE] [--revocation-date DATE]

Display contents of CRT, CSR or CRL file:

sysca show FILE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sysca-2.3.tar.gz (107.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page