Skip to content

CMS.sign ignores additionalIntermediateCertificates when signingTime is passed #287

@sergey-cheperis

Description

@sergey-cheperis

public static func sign<Bytes: DataProtocol>(
_ bytes: Bytes,
signatureAlgorithm: Certificate.SignatureAlgorithm,
additionalIntermediateCertificates: [Certificate] = [],
certificate: Certificate,
privateKey: Certificate.PrivateKey,
signingTime: Date? = nil,
detached: Bool = true
) throws -> [UInt8] {
if let signingTime = signingTime {
return try self.signWithSigningTime(
bytes,
signatureAlgorithm: signatureAlgorithm,
certificate: certificate,
privateKey: privateKey,
signingTime: signingTime,
detached: detached
)
}

Here, additionalIntermediateCertificates should be passed through to signWithSigningTime but it's not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions