You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>CUPS uses a redirect URI of "<ahref="http://127.0.0.1/"">http://127.0.0.1/"</a> for all authorization on the local system.
241
241
</p>
242
242
<h2id="cups-oauth-1.examples">Examples</h2>
243
-
<p>TBD
243
+
<p>Register a client ID and secret for the OAuth server at "<ahref="https://oauth.example.com/":">https://oauth.example.com/":</a>
244
244
</p>
245
+
<pre> cups-oauth -a <ahref="https://oauth.example.com/">https://oauth.example.com/</a> set-client-data CLIENT-ID CLIENT-SECRET
246
+
</pre>
247
+
<p>Save an access token (sometimes called an application or API key) for the OAuth server at "<ahref="https://oauth.example.com/":">https://oauth.example.com/":</a>
248
+
</p>
249
+
<pre> cups-oauth -a <ahref="https://oauth.example.com/">https://oauth.example.com/</a> set-access-token TOKEN
250
+
</pre>
251
+
<p>Authorize against the OAuth server at "<ahref="https://oauth.example.com/"">https://oauth.example.com/"</a> using your web browser:
252
+
</p>
253
+
<pre> cups-oauth -a <ahref="https://oauth.example.com/">https://oauth.example.com/</a> authorize
The supported uses are "digitalSignature", "nonRepudiation", "keyEncipherment", "dataEncipherment", "keyAgreement", "keyCertSign", "cRLSign", "encipherOnly", and "decipherOnly".
215
215
The preset "default-ca" specifies those uses required for a Certificate Authority, and the preset "default-tls" specifies those uses required for TLS.
@@ -121,7 +121,7 @@ Specify the certificate type - "rsa-2048" for 2048-bit RSA, "rsa-3072" for 3072-
121
121
Specify the usage for the certificate as a comma-delimited list of uses.
122
122
The supported uses are "digitalSignature", "nonRepudiation", "keyEncipherment", "dataEncipherment", "keyAgreement", "keyCertSign", "cRLSign", "encipherOnly", and "decipherOnly".
123
123
The preset "default-ca" specifies those uses required for a Certificate Authority, and the preset "default-tls" specifies those uses required for TLS.
124
-
.SH COMMANDS
124
+
.SHSUB-COMMANDS
125
125
.SS ca COMMON-NAME
126
126
Sign a certificate request for the specified common name.
127
127
.SS cacert COMMON-NAME
@@ -138,7 +138,22 @@ If PORT is not specified, uses a port number from 8000 to 8999.
138
138
.SS show COMMON-NAME
139
139
Shows any stored credentials for the specified common name.
140
140
.SH EXAMPLES
141
-
TBD
141
+
Create a certificate signing request for a 384-bit ECDSA certificate for "server.example.com":
142
+
.nf
143
+
cups-x509 csr -t ecdsa-p384 server.example.com
144
+
.fi
145
+
Install the certificate you get back from the CA for "server.example.com":
0 commit comments