-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#560 Enable removing NOC ICA certificates #567
Conversation
a6b15c8
to
c90939e
Compare
Signed-off-by: Abdulbois <abdulbois.tursunov@dsr-corporation.com> Signed-off-by: Abdulbois <abdulbois123@gmail.com>
c90939e
to
9bde610
Compare
Enable actionlint job Signed-off-by: Abdulbois <abdulbois.tursunov@dsr-corporation.com> Signed-off-by: Abdulbois <abdulbois123@gmail.com>
7d42a5f
to
3a7bac6
Compare
docs/transactions.md
Outdated
@@ -1466,6 +1466,25 @@ Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revok | |||
- CLI command: | |||
- `dcld tx pki revoke-noc-x509-ica-cert --subject=<base64 string> --subject-key-id=<hex string> --serial-number=<string> --info=<string> --time=<int64> --revoke-child=<bool> --from=<account>` | |||
|
|||
#### REMOVE_NOC_IC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### REMOVE_NOC_IC | |
#### REMOVE_NOC_ICA |
|
||
// Remove from ICA lists | ||
removeCertFromList(certBySerialNumber.Issuer, certBySerialNumber.SerialNumber, &icaCerts.Certs) | ||
k._removeNocX509IcaCert(ctx, certID, &icaCerts, msg.SerialNumber) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that calling k.RemoveNocIcaCertificateBySerialNumber(ctx, certificates.Vid, certID.Subject, certID.SubjectKeyId, serialNumber)
will be enough here
// Remove from Approved lists | ||
aprCerts, _ := k.GetApprovedCertificates(ctx, msg.Subject, msg.SubjectKeyId) | ||
removeCertFromList(certBySerialNumber.Issuer, certBySerialNumber.SerialNumber, &aprCerts.Certs) | ||
k._removeApprovedX509Cert(ctx, certID, &aprCerts, msg.SerialNumber) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it would be better to move _removeApprovedX509Cert
from msg_server_remove_x_509_cert
file to a more generic file
} | ||
if foundRevoked { | ||
removeCertFromList(certBySerialNumber.Issuer, certBySerialNumber.SerialNumber, &revCerts.Certs) | ||
k._removeRevokedX509Cert(ctx, certID, &revCerts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it would be better to move _removeRevokedX509Cert
from msg_server_remove_x_509_cert
file to a more generic file
Move methods to more generic place Signed-off-by: Abdulbois <abdulbois.tursunov@dsr-corporation.com> Signed-off-by: Abdulbois <abdulbois123@gmail.com>
184ca90
to
b694a77
Compare
No description provided.