Extension
A general-purpose representation of a specific X.509 extension.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
struct Extension
X.509 extensions are a general representation, with three properties: an identifier, a critical flag, and the encoded value. The specific data contained in the encoded value is determined by the value of the identifier stored in oid
.
This value enables Extensions
to store the value of all extensions in a certificate, even ones it does not understand. A number of extensions have built-in support, and can be decoded directly from an Extension
value. These are:
Users can write their own types by using a similar approach to these types, when it is necessary to add support for different X.509 extension.