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
{{ message }}
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: api/build/core-openapi3.yaml
+41-49Lines changed: 41 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -210,25 +210,13 @@ paths:
210
210
explode: false
211
211
responses:
212
212
'200':
213
-
description: JSON-Array of Object(s), each object containing "id_cert" (PEM encoded ID-Cert) and "invalidated" (boolean). An ID-Cert is considered invalidated, if the server or actor choose to revoke the validity of the ID-Cert before the lifetime of the certificate was scheduled to end.
213
+
description: JSON-Array of Object(s).
214
214
content:
215
215
application/json:
216
216
schema:
217
217
type: array
218
218
items:
219
-
type: object
220
-
properties:
221
-
id_cert:
222
-
type: string
223
-
example: ------BEGIN CERTIFICATE------...
224
-
description: PEM encoded ID-Cert
225
-
invalidated:
226
-
type: boolean
227
-
example: false
228
-
description: Whether this specific id_cert has been marked as invalidated by the server. An ID-Cert is considered invalidated, if the server or actor choose to revoke the validity of the ID-Cert before the lifetime of the certificate was scheduled to end.
An optional UNIX timestamp to retrieve the public key the server had at that
295
-
point in time, instead of the current one.
296
-
schema:
297
-
type: object
298
-
properties:
299
-
timestamp:
300
-
type: integer
301
-
format: uint64
302
-
required:
303
-
- timestamp
304
-
explode: false
305
-
responses:
306
-
'200':
307
-
description: |-
308
-
The current public key of the server, or, if specified, the public key the server had
309
-
at the specified time. The public key is being returned as a PEM encoded X.509
310
-
`SubjectPublicKeyInfo`.
311
-
content:
312
-
application/json:
313
-
schema:
314
-
type: string
315
-
tags:
316
-
- Federated Identity - Registration not required
317
273
/.p2/core/v1/keytrial:
318
274
post:
319
-
operationId: Unregistered_keyTrialRedirectExtern
275
+
operationId: Unregistered_completeKeyTrial
320
276
summary: Complete key trial
321
277
description: |-
322
278
Complete a key trial. After the successful completion of the key trial, the action that
@@ -525,7 +481,9 @@ paths:
525
481
get:
526
482
operationId: Unregistered_getMessages
527
483
summary: Fetch messages to-be-resigned
528
-
description: Fetch messages to be re-signed.
484
+
description: |-
485
+
Fetch messages to be re-signed. Must only return messages where the signatures correlate to
486
+
ID-Certs for which a key trial has been passed.
529
487
parameters:
530
488
- name: limit
531
489
in: query
@@ -1658,6 +1616,40 @@ components:
1658
1616
type: string
1659
1617
enum:
1660
1618
- v1.0-alpha.1
1619
+
polyproto.core.models.CacheableIDCert:
1620
+
type: object
1621
+
required:
1622
+
- idCertPem
1623
+
- cacheNotValidBefore
1624
+
- cacheNotValidAfter
1625
+
- cacheSignature
1626
+
properties:
1627
+
idCertPem:
1628
+
type: string
1629
+
example: ------BEGIN CERTIFICATE------...
1630
+
description: The requested ID-Cert in ASCII PEM format.
1631
+
invalidatedAt:
1632
+
type: integer
1633
+
format: uint64
1634
+
example: 1736610000
1635
+
description: UNIX timestamp that specifies when this specific id_cert has been marked as invalidated by the server. An ID-Cert is considered invalidated, if the server or actor choose to revoke the validity of the ID-Cert before the lifetime of the certificate was scheduled to end. If this property does not exist, the ID-Cert has not been invalidated.
1636
+
cacheNotValidBefore:
1637
+
type: integer
1638
+
format: uint64
1639
+
example: 1736606402
1640
+
description: UNIX timestamp that specifies the time from which this cache entry may be treated as valid.
1641
+
cacheNotValidAfter:
1642
+
type: integer
1643
+
format: uint64
1644
+
example: 1736613602
1645
+
description: UNIX timestamp that specifies a time until which this cache entry may be treated as valid.
description: Signature generated by the home server. This signature can be verified using the home servers' public identity key. A server generates the `cacheSignature` by concatenating the serial number of the ID-Cert in question with the `cacheValidNotBefore` timestamp and the `cacheValidNotAfter` timestamp, then generating the signature of the resulting concatenated string using the private identity key of the server. Clients must reject certificates of which the `cacheSignature` can not be verified to be correct.
1652
+
description: A cacheable response to an ID-Cert request.
0 commit comments