---
title: "enableSecureBoot(platformKey:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzefivariablestore/enablesecureboot(platformkey:)"
---

# enableSecureBoot(platformKey:)

Enables Secure Boot with a custom Platform Key.

## Declaration

```swift
func enableSecureBoot(platformKey: SecCertificate) throws
```

## Parameters

- `platformKey`: A custom Platform Key as an X.509 certificate.
