---
title: kSecAttrCertificateEncoding
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattrcertificateencoding
---

# kSecAttrCertificateEncoding

A key whose value indicates the item’s certificate encoding.

## Declaration

```swift
let kSecAttrCertificateEncoding: CFString
```

## Discussion

Discussion The corresponding value is of type CFNumber and denotes the certificate encoding (see the CSSM_CERT_ENCODING enumeration in cssmtype.h). Items of class kSecClassCertificate have this attribute. Read only.
