---
title: "SecTrustSetSignedCertificateTimestamps(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sectrustsetsignedcertificatetimestamps(_:_:)"
---

# SecTrustSetSignedCertificateTimestamps(_:_:)

Attaches signed certificate timestamp data to a trust object.

## Declaration

```swift
func SecTrustSetSignedCertificateTimestamps(_ trust: SecTrust, _ sctArray: CFArray?) -> OSStatus
```

## Parameters

- `trust`: The trust object to which the timestamp data should be attached.
- `sctArray`: An array of doc://com.apple.documentation/documentation/CoreFoundation/CFData instances, each of which contains a signed certificate timestamp.

## Return Value

Return Value A result code. See Security Framework Result Codes.

## Discussion

Discussion Use this function to provide secure certificate timestamps, which might be obtained during a TLS/SSL handshake, as input to a trust evaluation. For more information, see RFC 6962.
