method X509Certificate.prototype.toLegacyObject
Usage in Deno
```typescript import { X509Certificate } from "node:node__crypto.d.ts"; ```
X509Certificate.prototype.toLegacyObject(): PeerCertificate
Returns information about this certificate using the legacy `certificate object` encoding.