Skip to content

Commit ecaa4b9

Browse files
authored
Merge pull request #368 from abdulla-ashurov/issue301-PKI
Update documentation for section PKI
2 parents 7008860 + 628d93c commit ecaa4b9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/transactions.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ Approves the proposed root certificate.
685685
The certificate is not active until sufficient number of Trustees approve it.
686686

687687
- Parameters:
688-
- subject: `string` - proposed certificates's `Subject` in base64 format
688+
- subject: `string` - proposed certificates's `Subject` is base64 encoded subject DER sequence bytes
689689
- subject_key_id: `string` - proposed 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`
690690
- info: `optional(string)` - information/notes for the approval
691691
- time: `optional(int64)` - approval time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
@@ -707,7 +707,7 @@ Rejects the proposed root certificate.
707707
The certificate is not reject until sufficient number of Trustees reject it.
708708

709709
- Parameters:
710-
- subject: `string` - proposed certificates's `Subject` in base64 format
710+
- subject: `string` - proposed certificates's `Subject` is base64 encoded subject DER sequence bytes
711711
- subject_key_id: `string` - proposed certificates's `Subject Key Id` in hex string format, e.g:
712712
`5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB`
713713
- info: `optional(string)` - information/notes for the reject
@@ -763,7 +763,7 @@ Only the owner (sender) can revoke the certificate.
763763
Root certificates can not be revoked this way, use `PROPOSE_X509_CERT_REVOC` and `APPROVE_X509_ROOT_CERT_REVOC` instead.
764764

765765
- Parameters:
766-
- subject: `string` - certificates's `Subject` in base64 format
766+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
767767
- 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`
768768
- info: `optional(string)` - information/notes for the revocation
769769
- time: `optional(int64)` - revocation time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
@@ -785,7 +785,7 @@ If more than 1 Trustee signature is required to revoke a root certificate,
785785
then the certificate will be in a pending state until sufficient number of other Trustee's approvals is received.
786786

787787
- Parameters:
788-
- subject: `string` - certificates's `Subject` in base64 format
788+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
789789
- 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`
790790
- info: `optional(string)` - information/notes for the revocation proposal
791791
- time: `optional(int64)` - revocation proposal time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
@@ -805,7 +805,7 @@ All the certificates in the chain signed by the revoked certificate will be revo
805805
The revocation is not applied until sufficient number of Trustees approve it.
806806

807807
- Parameters:
808-
- subject: `string` - certificates's `Subject`in base64 format
808+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
809809
- 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`
810810
- info: `optional(string)` - information/notes for the revocation approval
811811
- time: `optional(int64)` - revocation approval time (number of nanoseconds elapsed since January 1, 1970 UTC). CLI uses the current time for that field.
@@ -826,7 +826,7 @@ Revoked certificates are not returned.
826826
Use `GET_ALL_REVOKED_X509_CERTS` to get a list of all revoked certificates.
827827

828828
- Parameters:
829-
- subject: `string` - certificates's `Subject` in base64 format
829+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
830830
- 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`
831831
- CLI command:
832832
- `dcld query pki x509-cert --subject=<base64 string> --subject-key-id=<hex string>`
@@ -843,7 +843,7 @@ Revoked certificates are not returned.
843843
Use `GET_ALL_REVOKED_X509_CERTS` to get a list of all revoked certificates.
844844

845845
- Parameters:
846-
- subject: `string` - certificates's `Subject` in base64 format
846+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
847847
- CLI command:
848848
- `dcld query pki all-subject-x509-certs (--subject=<base64 string>`
849849
- REST API:
@@ -857,7 +857,7 @@ Gets all child certificates for the given certificate.
857857
Revoked certificates are not returned.
858858

859859
- Parameters:
860-
- subject: `string` - certificates's `Subject` in base64 string format
860+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
861861
- 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`
862862
- CLI command:
863863
- `dcld query pki all-child-x509-certs (--subject=<base64 string> --subject-key-id=<hex string>`
@@ -871,7 +871,7 @@ Revoked certificates are not returned.
871871
Gets a proposed but not approved root certificate with the given subject and subject key ID attributes.
872872

873873
- Parameters:
874-
- subject: `string` - certificates's `Subject` in base64 format
874+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
875875
- 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`
876876
- CLI command:
877877
- `dcld query pki proposed-x509-root-cert --subject=<base64 string> --subject-key-id=<hex string>`
@@ -885,7 +885,7 @@ Gets a proposed but not approved root certificate with the given subject and sub
885885
Get a rejected root certificate with the given subject and subject key ID attributes.
886886

887887
- Parameters:
888-
- subject: `string` - certificates's `Subject` in base64 format
888+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
889889
- 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`
890890
- CLI command:
891891
- `dcld query pki rejected-x509-root-cert --subject=<base64 string> --subject-key-id=<hex string>`
@@ -899,7 +899,7 @@ Get a rejected root certificate with the given subject and subject key ID attrib
899899
Gets a revoked certificate (either root, intermediate or leaf) by the given subject and subject key ID attributes.
900900

901901
- Parameters:
902-
- subject: `string` - certificates's `Subject` in base64 format
902+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
903903
- 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`
904904
- CLI command:
905905
- `dcld query pki revoked-x509-cert --subject=<base64 string> --subject-key-id=<hex string>`
@@ -913,7 +913,7 @@ Gets a revoked certificate (either root, intermediate or leaf) by the given subj
913913
Gets a proposed but not approved root certificate to be revoked.
914914

915915
- Parameters:
916-
- subject: `string` - certificates's `Subject` in base64 format
916+
- subject: `string` - certificates's `Subject` is base64 encoded subject DER sequence bytes
917917
- 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`
918918
- CLI command:
919919
- `dcld query pki proposed-x509-root-cert-to-revoke --subject=<base64 string> --subject-key-id=<hex string>`

0 commit comments

Comments
 (0)