Skip to main content
Certificate.verifySpkac - node__crypto.d.ts - Node documentation
method Certificate.verifySpkac

Usage in Deno

```typescript import { Certificate } from "node:node__crypto.d.ts"; ```
Certificate.verifySpkac(spkac: ArrayBufferView): boolean
```js import { Buffer } from 'node:buffer'; const { Certificate } = await import('node:crypto'); const spkac = getSpkacSomehow(); console.log(Certificate.verifySpkac(Buffer.from(spkac))); // Prints: true or false ```

Parameters

spkac: ArrayBufferView

Return Type

boolean
`true` if the given `spkac` data structure is valid, `false` otherwise.