@@ -593,6 +593,9 @@ paths:
593
593
will be used. In principle CAs can also use this to talk to a local
594
594
parent CA in the same krill server, but this is inefficient. Therefore
595
595
it is also possible to add an 'embedded' parent in this case.
596
+
597
+ Note that you MUST specify a repository for your CA before you are
598
+ allowed to add a parent to it.
596
599
parameters :
597
600
- $ref : ' #/components/parameters/ca_handle'
598
601
requestBody :
@@ -607,7 +610,14 @@ paths:
607
610
' 403 ' :
608
611
$ref : ' #/components/responses/Forbidden'
609
612
' 400 ' :
610
- $ref : ' #/components/schemas/ParentWithHandleExists'
613
+ description : Bad request parameters.
614
+ content :
615
+ application/json :
616
+ schema :
617
+ oneOf :
618
+ - $ref : ' #/components/schemas/ParentWithHandleExists'
619
+ - $ref : ' #/components/responses/ParentNoResponse'
620
+ - $ref : ' #/components/schemas/NoRepositoryConfiguredYetForCA'
611
621
' 404 ' :
612
622
$ref : ' #/components/responses/UnknownCA'
613
623
' 500 ' :
@@ -655,7 +665,13 @@ paths:
655
665
' 200 ' :
656
666
$ref : ' #/components/responses/Success'
657
667
' 400 ' :
658
- $ref : ' #/components/responses/UnknownParent'
668
+ description : Bad request parameters.
669
+ content :
670
+ application/json :
671
+ schema :
672
+ oneOf :
673
+ - $ref : ' #/components/responses/UnknownParent'
674
+ - $ref : ' #/components/responses/ParentNoResponse'
659
675
' 403 ' :
660
676
$ref : ' #/components/responses/Forbidden'
661
677
' 404 ' :
@@ -719,8 +735,12 @@ paths:
719
735
- Request new certificates with SIA entries pointing to the new
720
736
locations.
721
737
- (best effort) Clean up of the old repository.
738
+
722
739
The new repository can be embedded, or remote. To use a remote
723
740
repository, the RFC 8181 Repository Response must be encoded into JSON.
741
+
742
+ Note: for most users it's better to use a remote repository, e.g. provided
743
+ by your RIR or NIR.
724
744
parameters :
725
745
- $ref : ' #/components/parameters/ca_handle'
726
746
requestBody :
@@ -1436,6 +1456,18 @@ components:
1436
1456
msg :
1437
1457
type : string
1438
1458
example : Parent with handle exists.
1459
+ ParentNoResponse :
1460
+ type : object
1461
+ required :
1462
+ - code
1463
+ - msg
1464
+ properties :
1465
+ code :
1466
+ type : integer
1467
+ enum : [2308]
1468
+ msg :
1469
+ type : string
1470
+ example : No response from parent.
1439
1471
UnknownChild :
1440
1472
type : object
1441
1473
required :
@@ -1460,6 +1492,18 @@ components:
1460
1492
msg :
1461
1493
type : string
1462
1494
example : No known parent for handle.
1495
+ NoRepositoryConfiguredYetForCA :
1496
+ type : object
1497
+ required :
1498
+ - code
1499
+ - msg
1500
+ properties :
1501
+ code :
1502
+ type : integer
1503
+ enum : [2307]
1504
+ msg :
1505
+ type : string
1506
+ example : No repository configured yet for CA.
1463
1507
InvalidROADeltaAddingDefinitionAlreadyPresent :
1464
1508
type : object
1465
1509
required :
@@ -1588,6 +1632,12 @@ components:
1588
1632
application/json :
1589
1633
schema :
1590
1634
$ref : ' #/components/schemas/UnknownParent'
1635
+ ParentNoResponse :
1636
+ description : No response from parent.
1637
+ content :
1638
+ application/json :
1639
+ schema :
1640
+ $ref : ' #/components/schemas/ParentNoResponse'
1591
1641
GeneralPublicationServerError :
1592
1642
description : General Publication Server error.
1593
1643
content :
0 commit comments