method Certificate.exportPublicKey
Usage in Deno
```typescript import { Certificate } from "node:node__crypto.d.ts"; ```
Certificate.exportPublicKey(spkac: BinaryLike,encoding?: string,): Buffer
```js
const { Certificate } = await import('node:crypto');
const spkac = getSpkacSomehow();
const publicKey = Certificate.exportPublicKey(spkac);
console.log(publicKey);
// Prints: the public key as
```
spkac: BinaryLike
Buffer
The public key component of the `spkac` data structure, which includes a public key and a challenge.