---
title: "addTrustedRootCertificate(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusteroperationalcredentials/addtrustedrootcertificate(with:completion:)"
---

# addTrustedRootCertificate(with:completion:)

## Declaration

```swift
func addTrustedRootCertificate(with params: MTROperationalCredentialsClusterAddTrustedRootCertificateParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func addTrustedRootCertificate(with params: MTROperationalCredentialsClusterAddTrustedRootCertificateParams) async throws
```
