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
Copy file name to clipboardExpand all lines: docs/openapi.yaml
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,19 @@ paths:
158
158
description: Generate and store a new X.509 certificate and RSA private key (keypair) for exchanging the encrypted DEP OAuth1 tokens via the Apple ABM/ASM/BE portal. Each request generates a new (and overwrites the existing) keypair. The certificate is returned.
159
159
security:
160
160
- basicAuth: []
161
+
parameters:
162
+
- in: query
163
+
name: cn
164
+
required: false
165
+
schema:
166
+
type: string
167
+
example: "depserver"
168
+
- in: query
169
+
name: validity_days
170
+
required: false
171
+
schema:
172
+
type: integer
173
+
example: 365
161
174
responses:
162
175
'200':
163
176
description: X.509 certificate of the keypair used to encrypted the OAuth1 tokens.
Copy file name to clipboardExpand all lines: docs/operations-guide.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ The `/v1/tokenpki/{name}` endpoints deal with the public key exchange using the
77
77
78
78
* Endpoint: `GET, PUT /v1/tokens/{name}`
79
79
80
-
The `/v1/tokens/{name}` endpoints deal with the raw DEP OAuth tokens in JSON form. I.e. after the PKI exchange you can query for the actual DEP OAuth tokens if you like. This also allows configuring the OAuth1 tokens for a DEP name if you already have the tokens in JSON format. I.e. if you used the `deptokens` tool or you're using the DEP simulator `depsim`.
80
+
The `/v1/tokens/{name}` endpoints deal with the raw DEP OAuth tokens in JSON form. I.e. after the PKI exchange you can query for the actual DEP OAuth tokens if you like. This also allows configuring the OAuth1 tokens for a DEP name if you already have the tokens in JSON format. I.e. if you used the `deptokens` tool or you're using the DEP simulator `depsim`.
81
81
82
82
#### Assigner
83
83
@@ -169,10 +169,14 @@ The [Quickstart Guide](quickstart.md) also documents some usage of these scripts
169
169
170
170
For the DEP "MDM server" in the environment variable $DEP_NAME (see above) this script generates and retrieves the public key certificate for use when downloading the DEP authentication tokens from the ABM/ASM/BE portal. The `curl` call will dump the PEM-encoded certificate to stdout so you'll likely want to redirect it somewhere useful so it can be uploaded to the portal.
171
171
172
+
This script has two optional arguments:
173
+
- The first argument specifies the Common Name to setin the certificate (default "depserver").
174
+
- The second argument specifies the validity of the certificate in days (default 1 day).
@@ -520,6 +524,18 @@ The file path to read or save the RSA private key that corresponds to the public
520
524
521
525
A password to encrypt or decrypt RSA private key on disk with. Note this is password is just to protect the private key itself and does not play a role in the token PKI exchange with Apple.
522
526
527
+
#### -cn
528
+
529
+
* common name to set in the certificate
530
+
531
+
A Common Name string to set in the certificate (default is "depserver").
532
+
533
+
#### -days
534
+
535
+
* validity of the generated certificate in days
536
+
537
+
The generated certificate will expire after the provided days.
0 commit comments