Skip to content

Commit

Permalink
#531-Publish-PAI-certificates-for-CRLSignerCertificate-verification
Browse files Browse the repository at this point in the history
Signed-off-by: Abdulbois <abdulbois.tursunov@dsr-corporation.com>
Signed-off-by: Abdulbois <abdulbois123@gmail.com>
  • Loading branch information
Abdulbois committed Mar 26, 2024
1 parent 31a9d07 commit 6a24978
Show file tree
Hide file tree
Showing 15 changed files with 684 additions and 226 deletions.
104 changes: 91 additions & 13 deletions integration_tests/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,60 @@ G0/z0oo9rsKcpgUogQ8fYYEg/QClYFHJuhFbf1M+VdeMScbllpt4kGH2ih7aU1b7
GDAWgBTOqJJm6uCAvSu1aOQLB8T6LDRtMTAKBggqhkjOPQQDAgNIADBFAiEAkApx
PWFFDoptmYnsW1QhKqrcD+xmFgJA4SWTH5Q1efMCIDWqdG0sAgum+FphfM4HF6XV
M6mDL6NurBAW1pJlg8OT
-----END CERTIFICATE-----`

LeafCertWithVid = `-----BEGIN CERTIFICATE-----
MIICrjCCAlSgAwIBAgIUBCg+BsyaPLK2sNxttFUIbDF/FPAwCgYIKoZIzj0EAwIw
ga4xCzAJBgNVBAYTAlVTMREwDwYDVQQIDAhOZXcgWW9yazERMA8GA1UEBwwITmV3
IFlvcmsxGDAWBgNVBAoMD0V4YW1wbGUgQ29tcGFueTEZMBcGA1UECwwQVGVzdGlu
ZyBEaXZpc2lvbjEYMBYGA1UEAwwPd3d3LmV4YW1wbGUuY29tMRQwEgYKKwYBBAGC
onwCAQwERkZGMTEUMBIGCisGAQQBgqJ8AgIMBEZGRjEwIBcNMjQwMzI2MTAyNDI1
WhgPMzAyMzA3MjgxMDI0MjVaMIGaMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3
IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRowGAYDVQQKDBFDUkwtbGVhZiB3aXRo
IFZJRDEZMBcGA1UECwwQVGVzdGluZyBEaXZpc2lvbjEYMBYGA1UEAwwPd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bAs8eGMC5Ql0kq9ksAx25EbzG6
eXHxbfbsjXNE8d21Vcj1o2AwXjAdBgNVHQ4EFgQU1pgmEL6sI3QJCkALzTllU/F2
sPUwHwYDVR0jBBgwFoAUDozoyLiqULwlhVa5sZzCx9nFLxcwDAYDVR0TAQH/BAIw
ADAOBgNVHQ8BAf8EBAMCAYIwCgYIKoZIzj0EAwIDSAAwRQIhAPIzS2Tlov+9/R6U
fJhEWAA8mOgN9OVCdPWAegWuN3b2AiApXciu/dT4B5db3puPWrAsMjAUYF2Owc/D
eujhLsD51w==
-----END CERTIFICATE-----`

RootIssuer = "MDQxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApzb21lLXN0YXRlMRAwDgYDVQQKDAdyb290LWNh"
Expand All @@ -613,12 +667,13 @@ M6mDL6NurBAW1pJlg8OT
LeafCertWithSameSubjectAndSKIDSubjectKeyID = "12:16:55:8E:5E:2A:DF:04:D7:E6:FE:D1:53:69:61:98:EF:17:2F:03"
LeafCertWithSameSubjectAndSKIDSerialNumber = "5"

IntermediateIssuer = "MDQxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApzb21lLXN0YXRlMRAwDgYDVQQKDAdyb290LWNh"
IntermediateAuthorityKeyID = "5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB"
IntermediateSubject = "MDwxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApzb21lLXN0YXRlMRgwFgYDVQQKDA9pbnRlcm1lZGlhdGUtY2E="
IntermediateSubjectAsText = "O=intermediate-ca,ST=some-state,C=AU"
IntermediateSubjectKeyID = "4E:3B:73:F4:70:4D:C2:98:0D:DB:C8:5A:5F:02:3B:BF:86:25:56:2B"
IntermediateSerialNumber = "169917617234879872371588777545667947720450185023"
IntermediateIssuer = "MDQxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApzb21lLXN0YXRlMRAwDgYDVQQKDAdyb290LWNh"
IntermediateAuthorityKeyID = "5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB"
IntermediateSubject = "MDwxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApzb21lLXN0YXRlMRgwFgYDVQQKDA9pbnRlcm1lZGlhdGUtY2E="
IntermediateSubjectAsText = "O=intermediate-ca,ST=some-state,C=AU"
IntermediateSubjectKeyID = "4E:3B:73:F4:70:4D:C2:98:0D:DB:C8:5A:5F:02:3B:BF:86:25:56:2B"
IntermediateSubjectKeyIDWithoutColumns = "4E3B73F4704DC2980DDBC85A5F023BBF8625562B"
IntermediateSerialNumber = "169917617234879872371588777545667947720450185023"

LeafIssuer = "MDwxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApzb21lLXN0YXRlMRgwFgYDVQQKDA9pbnRlcm1lZGlhdGUtY2E="
LeafAuthorityKeyID = "4E:3B:73:F4:70:4D:C2:98:D:DB:C8:5A:5F:02:3B:BF:86:25:56:2B"
Expand Down Expand Up @@ -657,16 +712,39 @@ M6mDL6NurBAW1pJlg8OT

TestCertPemVid = 4701

RootCertWithVidSubject = "MIGYMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbTEUMBIGCisGAQQBgqJ8AgEMBEZGRjE="
RootCertWithVidSubjectKeyID = "CE:A8:92:66:EA:E0:80:BD:2B:B5:68:E4:0B:07:C4:FA:2C:34:6D:31"
RootCertWithVidVid = 65521
RootCertWithVidSubject = "MIGYMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbTEUMBIGCisGAQQBgqJ8AgEMBEZGRjE="
RootCertWithVidSubjectKeyID = "CE:A8:92:66:EA:E0:80:BD:2B:B5:68:E4:0B:07:C4:FA:2C:34:6D:31"
RootCertWithVidSubjectKeyIDWithoutColumns = "CEA89266EAE080BD2BB568E40B07C4FA2C346D31"
RootCertWithVidVid = 65521

IntermediateCertWithVid1Subject = "MIGuMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbTEUMBIGCisGAQQBgqJ8AgEMBEZGRjExFDASBgorBgEEAYKifAICDARGRkYx"
IntermediateCertWithVid1SubjectKeyID = "0E:8C:E8:C8:B8:AA:50:BC:25:85:56:B9:B1:9C:C2:C7:D9:C5:2F:17"
IntermediateCertWithVid1SerialNumber = "3"
IntermediateCertWithVid1Vid = 65521
IntermediateCertWithVid1Subject = "MIGuMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbTEUMBIGCisGAQQBgqJ8AgEMBEZGRjExFDASBgorBgEEAYKifAICDARGRkYx"
IntermediateCertWithVid1SubjectKeyID = "0E:8C:E8:C8:B8:AA:50:BC:25:85:56:B9:B1:9C:C2:C7:D9:C5:2F:17"
IntermediateCertWithVid1SubjectKeyIDWithoutColumns = "0E8CE8C8B8AA50BC258556B9B19CC2C7D9C52F17"
IntermediateCertWithVid1SerialNumber = "3"
IntermediateCertWithVid1Vid = 65521

IntermediateCertWithVid2SubjectKeyID = "0E:8C:E8:C8:B8:AA:50:BC:25:85:56:B9:B1:9C:C2:C7:D9:C5:2F:17"
IntermediateCertWithVid2SerialNumber = "4"
IntermediateCertWithVid2Vid = 65522

LeafCertWithVidSubject = "MIGaMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRowGAYDVQQKDBFDUkwtbGVhZiB3aXRoIFZJRDEZMBcGA1UECwwQVGVzdGluZyBEaXZpc2lvbjEYMBYGA1UEAwwPd3d3LmV4YW1wbGUuY29tMRQwEgYKKwYBBAGConwCAQwERkZGMQ=="
LeafCertWithVidSubjectAsText = "CN=www.example.com,OU=Testing Division,O=CRL-leaf with VID,L=New York,ST=New York,C=US,vid=0xFFF1"
LeafCertWithVidSubjectKeyID = "D6:98:26:10:BE:AC:23:74:09:0A:40:0B:CD:39:65:53:F1:76:B0:F5"
LeafCertWithVidAuthorityKeyID = IntermediateCertWithVid1SubjectKeyID
LeafCertWithVidSerialNumber = "23733396166621909643583307546615137635389084912"
LeafCertWithVidVid = 65521

LeafCertWithVidPidSubject = "MIG4MQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMSIwIAYDVQQKDBlDUkwtbGVhZiB3aXRoIFZJRCBhbmQgUElEMRkwFwYDVQQLDBBUZXN0aW5nIERpdmlzaW9uMRgwFgYDVQQDDA93d3cuZXhhbXBsZS5jb20xFDASBgorBgEEAYKifAIBDARGRkYxMRQwEgYKKwYBBAGConwCAgwERkZGMQ=="
LeafCertWithVidPidSubjectAsText = "CN=www.example.com,OU=Testing Division,O=CRL-leaf with VID and PID,L=New York,ST=New York,C=US,pid=0xFFF1,vid=0xFFF1"
LeafCertWithVidPidSubjectKeyID = "D6:98:26:10:BE:AC:23:74:09:0A:40:0B:CD:39:65:53:F1:76:B0:F5"
LeafCertWithVidPidAuthorityKeyID = IntermediateCertWithVid1SubjectKeyID
LeafCertWithVidPidSerialNumber = "157838490760642822714861562571853387507185816418"
LeafCertWithVidPidVid = 65521
LeafCertWithVidPidPid = 65521

LeafCertWithoutVidPidSubject = "MIGuMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbTEUMBIGCisGAQQBgqJ8AgEMBEZGRjExFDASBgorBgEEAYKifAICDARGRkYx"
LeafCertWithoutVidPidSubjectAsText = "CN=www.example.com,OU=Testing Division,O=CRL-leaf without VID and PID,L=New York,ST=New York,C=US"
LeafCertWithoutVidPidSubjectKeyID = "D6:98:26:10:BE:AC:23:74:09:0A:40:0B:CD:39:65:53:F1:76:B0:F5"
LeafCertWithoutVidPidAuthorityKeyID = IntermediateCertWithVid1SubjectKeyID
LeafCertWithoutVidPidSerialNumber = "76908939670186132114931832808683834138281370088"
)
1 change: 1 addition & 0 deletions proto/pki/pki_revocation_distribution_point.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ message PkiRevocationDistributionPoint {
uint32 dataDigestType = 10;
uint32 revocationType = 11;
uint32 schemaVersion = 12;
string crlSignerDelegator = 13;
}

2 changes: 2 additions & 0 deletions proto/pki/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ message MsgAddPkiRevocationDistributionPoint {
uint32 dataDigestType = 11;
uint32 revocationType = 12 [(gogoproto.moretags) = "validate:\"required\""];
uint32 schemaVersion = 13 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];
string crlSignerDelegator = 14 [(gogoproto.moretags) = "validate:\"max=10485760\""];
}

message MsgAddPkiRevocationDistributionPointResponse {
Expand All @@ -147,6 +148,7 @@ message MsgUpdatePkiRevocationDistributionPoint {
string dataDigest = 8;
uint32 dataDigestType = 9;
uint32 schemaVersion = 10 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];
string crlSignerDelegator = 11 [(gogoproto.moretags) = "validate:\"max=10485760\""];
}

message MsgUpdatePkiRevocationDistributionPointResponse {
Expand Down
25 changes: 25 additions & 0 deletions types/pki/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ var (
ErrCertNotChainedBack = sdkerrors.Register(ModuleName, 438, "Certificate is not chained back to a root certificate on DCL")
ErrCertVidNotEqualAccountVid = sdkerrors.Register(ModuleName, 439, "account's vid is not equal to certificate vid")
ErrCertVidNotEqualToRootVid = sdkerrors.Register(ModuleName, 440, "certificate's vid is not equal to vid of root certificate ")
ErrCRLSignerCertificateInvalidFormat = sdkerrors.Register(ModuleName, 441, "CRLSignerCertificate pid does not equal message pid")
ErrInvalidAuthorityKeyIDFormat = sdkerrors.Register(ModuleName, 442, "CRLSignerCertificate pid does not equal message pid")
)

func NewErrUnauthorizedRole(transactionName string, requiredRole types.AccountRole) error {
Expand Down Expand Up @@ -231,6 +233,13 @@ func NewErrRootCertVidNotEqualToAccountVid(rootVID int32, accountVID int32) erro
rootVID, accountVID)
}

func NewErrCRLSignerCertificateInvalidFormat() error {
return sdkerrors.Wrapf(
ErrCRLSignerCertificateInvalidFormat,
"Invalid CRL Signer Certificate format",
)
}

func NewErrCRLSignerCertificatePidNotEqualMsgPid(certificatePid int32, messagePid int32) error {
return sdkerrors.Wrapf(
ErrCRLSignerCertificatePidNotEqualMsgPid,
Expand Down Expand Up @@ -296,6 +305,14 @@ func NewErrWrongSubjectKeyIDFormat() error {
)
}

func NewErrInvalidAuthorityKeyIDFormat() error {
return sdkerrors.Wrapf(
ErrInvalidAuthorityKeyIDFormat,
"Invalid AuthorityKeyID format. It must consist of even number of uppercase hexadecimal characters ([0-9A-F]), "+
"with no whitespace and no non-hexadecimal characters",
)
}

func NewErrVidNotFound(e interface{}) error {
return sdkerrors.Wrapf(ErrVidNotFound, "%v",
e)
Expand Down Expand Up @@ -387,3 +404,11 @@ func NewErrCertificateVidNotEqualMsgVid(e interface{}) error {
func NewErrCertNotChainedBack() error {
return sdkerrors.Wrapf(ErrCertNotChainedBack, "CRL Signer Certificate is not chained back to root certificate on DCL")
}

func NewErrCRLSignerCertNotChainedBackToDelegator() error {
return sdkerrors.Wrapf(ErrCertNotChainedBack, "CRL Signer Certificate is not chained back to delegated PAI CRL Signer certificate")
}

func NewErrCRLSignerCertDelegatorNotChainedBack() error {
return sdkerrors.Wrapf(ErrCertNotChainedBack, "Delegated CRL Signer Certificate is not chained back to root certificate on DCL")
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export interface PkiRevokedNocRootCertificates {
subject?: string;
subjectKeyId?: string;
certs?: PkiCertificate[];

/** @format int64 */
schemaVersion?: number;
}

export interface PkiCertificate {
Expand Down Expand Up @@ -141,8 +144,10 @@ export interface PkiPkiRevocationDistributionPoint {
/** @format int64 */
revocationType?: number;

/** @format int64 */
schemaVersion?: number;
/** @format int64 */
schemaVersion?: number;

crlSignerDelegator?: string;
}

export interface PkiPkiRevocationDistributionPointsByIssuerSubjectKeyID {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface PkiRevocationDistributionPoint {
dataDigestType: number
revocationType: number
schemaVersion: number
crlSignerDelegator: string
}

const basePkiRevocationDistributionPoint: object = {
Expand All @@ -31,7 +32,8 @@ const basePkiRevocationDistributionPoint: object = {
dataDigest: '',
dataDigestType: 0,
revocationType: 0,
schemaVersion: 0
schemaVersion: 0,
crlSignerDelegator: ''
}

export const PkiRevocationDistributionPoint = {
Expand Down Expand Up @@ -72,6 +74,9 @@ export const PkiRevocationDistributionPoint = {
if (message.schemaVersion !== 0) {
writer.uint32(96).uint32(message.schemaVersion)
}
if (message.crlSignerDelegator !== '') {
writer.uint32(106).string(message.crlSignerDelegator)
}
return writer
},

Expand Down Expand Up @@ -118,6 +123,9 @@ export const PkiRevocationDistributionPoint = {
case 12:
message.schemaVersion = reader.uint32()
break
case 13:
message.crlSignerDelegator = reader.string()
break
default:
reader.skipType(tag & 7)
break
Expand Down Expand Up @@ -188,6 +196,11 @@ export const PkiRevocationDistributionPoint = {
} else {
message.schemaVersion = 0
}
if (object.crlSignerDelegator !== undefined && object.crlSignerDelegator !== null) {
message.crlSignerDelegator = String(object.crlSignerDelegator)
} else {
message.crlSignerDelegator = ''
}
return message
},

Expand All @@ -205,6 +218,7 @@ export const PkiRevocationDistributionPoint = {
message.dataDigestType !== undefined && (obj.dataDigestType = message.dataDigestType)
message.revocationType !== undefined && (obj.revocationType = message.revocationType)
message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion)
message.crlSignerDelegator !== undefined && (obj.crlSignerDelegator = message.crlSignerDelegator)
return obj
},

Expand Down Expand Up @@ -270,6 +284,11 @@ export const PkiRevocationDistributionPoint = {
} else {
message.schemaVersion = 0
}
if (object.crlSignerDelegator !== undefined && object.crlSignerDelegator !== null) {
message.crlSignerDelegator = object.crlSignerDelegator
} else {
message.crlSignerDelegator = ''
}
return message
}
}
Expand Down
Loading

0 comments on commit 6a24978

Please sign in to comment.