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
#535 Make the revocation of child certificates optional (#544)
* #535 Make the revocation of child certificates optional
- Add `revoke-child` flag
- Cover unit and integration tests
Signed-off-by: Abdulbois <abdulbois.tursunov@dsr-corporation.com>
Signed-off-by: Abdulbois <abdulbois123@gmail.com>
Copy file name to clipboardexpand all lines: docs/transactions.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -936,7 +936,7 @@ Revokes the given X509 certificate (either intermediate or leaf).
936
936
Revocation here just means removing it from the ledger.
937
937
If a Revocation Distribution Point needs to be published (such as RFC5280 Certificate Revocation List), please use [ADD_PKI_REVOCATION_DISTRIBUTION_POINT](#add_pki_revocation_distribution_point).
938
938
939
-
All the certificates in the chain signed by the revoked certificate will be revoked as well.
939
+
If `revoke-child` flag is set to `true` then all the certificates in the chain signed by the revoked certificate will be revoked as well.
940
940
941
941
Only the owner (sender) can revoke the certificate.
942
942
Root certificates can not be revoked this way, use `PROPOSE_X509_CERT_REVOC` and `APPROVE_X509_ROOT_CERT_REVOC` instead.
@@ -945,6 +945,7 @@ Root certificates can not be revoked this way, use `PROPOSE_X509_CERT_REVOC` an
945
945
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
946
946
- subject_key_id: `string` - certificates's `Subject Key Id` in hex string format, e.g: `5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB`
947
947
- serial-number: `optional(string)` - certificate's serial number
948
+
- revoke-child: `optional(bool)` - to revoke child certificates in the chain - default is false
948
949
- info: `optional(string)` - information/notes for the revocation
949
950
- time: `optional(int64)` - revocation time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
950
951
- In State: `pki/RevokedCertificates/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
@@ -980,7 +981,7 @@ Proposes revocation of the given X509 root certificate by a Trustee.
980
981
Revocation here just means removing it from the ledger.
981
982
If a Revocation Distribution Point needs to be published (such as RFC5280 Certificate Revocation List), please use [ADD_PKI_REVOCATION_DISTRIBUTION_POINT](#add_pki_revocation_distribution_point).
982
983
983
-
All the certificates in the chain signed by the revoked certificate will be revoked as well.
984
+
If `revoke-child` flag is set to `true` then all the certificates in the chain signed by the revoked certificate will be revoked as well.
984
985
985
986
If more than 1 Trustee signature is required to revoke a root certificate,
986
987
then the certificate will be in a pending state until sufficient number of other Trustee's approvals is received.
@@ -989,6 +990,7 @@ then the certificate will be in a pending state until sufficient number of other
989
990
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
990
991
- subject_key_id: `string` - certificates's `Subject Key Id` in hex string format, e.g: `5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB`
991
992
- serial-number: `optional(string)` - certificate's serial number
993
+
- revoke-child: `optional(bool)` - to revoke child certificates in the chain - default is false
992
994
- info: `optional(string)` - information/notes for the revocation proposal
993
995
- time: `optional(int64)` - revocation proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
994
996
- In State: `pki/ProposedCertificateRevocation/value/<Certificate's Subject>/<Certificate's Subject Key ID>`
0 commit comments