cups-x509(1)

Name

cups-x509 - description

Synopsis

cups-x509 --help
cups-x509 --version
cups-x509 [ --pin ] [ --require-ca ] [ -C COUNTRY ] [ -L LOCALITY ] [ -O ORGANIZATION ] [ -R CSR-FILENAME ] [ -S STATE-PROVINCE ] [ -U ORGANIZATIONAL-UNIT ] [ -a SUBJECT-ALT-NAME ] [ -d DAYS ] [ -p PURPOSE ] [ -r ROOT-NAME ] [ -t TYPE ] [ -u USAGE ] COMMAND [ARGUMENT(S)]

Description

The cups-x509 utility manages X.509 certificates and certificate requests, and supports client and server tests.

Options

The following options are recognized by cups-x509:

--help
Show program usage.

--pin
Pin the server's X.509 certificate found by the client command.

--require-ca
Require the server's X.509 certificate found by the client command to be signed by a known CA.

--version
Show the CUPS version.

-C COUNTRY
Specify the country for new X.509 certificates and certificate requests.

-L LOCALITY
Specify the locality (city, town, etc.) for new X.509 certificates and certificate requests.

-O ORGANIZATION
Specify the organization name for new X.509 certificates and certificate requests.

-R CSR-FILENAME
Specify an X.509 certificate signing request in PEM format to be used when signing a certificate with the ca command.

-S STATE-PROVINCE
Specify the state/province name for new X.509 certificates and certificate requests.

-U ORGANIZATIONAL-UNIT
Specify the organizational unit name for new X.509 certificates and certificate requests.

-a SUBJECT-ALT-NAME
Specify an alternate name for new X.509 certificates and certificate requests.

-d DAYS
Specify the number of days before a new X.509 certificate will expire.

-p PURPOSE
Specify the purpose of the X.509 certificate or certificate request as a comma-delimited list of purposes. The supported purposes are "serverAuth" for TLS server authentication, "clientAuth" for TLS client authentication, "codeSigning" for executable code signing, "emailProtection" for S/MIME encryption and signing, "timeStamping" for secure timestamps, and "OCSPSigning" for Online Certificate Status Protocol services.

-r ROOT-NAME
Specify the common name of the X.509 root certificate to use. The default root certificate is named "_site_".

-t TYPE
Specify the certificate type - "rsa-2048" for 2048-bit RSA, "rsa-3072" for 3072-bit RSA, "rsa-4096" for 4096-bit RSA, "ecdsa-p256" for 256-bit ECDSA, "ecdsa-p384" for 384-bit ECDSA, or "ecdsa-p521" for 521-bit ECDSA.

-u USAGE
Specify the usage for the certificate as a comma-delimited list of uses. The supported uses are "digitalSignature", "nonRepudiation", "keyEncipherment", "dataEncipherment", "keyAgreement", "keyCertSign", "cRLSign", "encipherOnly", and "decipherOnly". The preset "default-ca" specifies those uses required for a Certificate Authority, and the preset "default-tls" specifies those uses required for TLS.

Commands

Ca Common-Name

Sign a certificate request for the specified common name.

Cacert Common-Name

Create a CA certificate for the specified common name.

Cert Common-Name

Create a certificate for the specified common name.

Client Uri

Connect to the specified URI and validate the server's certificate.

Csr Common-Name

Create a certificate signing request for the specified common name.

Server Common-Name[:Port]

Run a HTTPS test server that echos back the resource path for every GET request. If PORT is not specified, uses a port number from 8000 to 8999.

Show Common-Name

Shows any stored credentials for the specified common name.

Examples

TBD

See Also

cups(1)

Copyright

Copyright © 2025 by OpenPrinting.