()
| 326 | } |
| 327 | |
| 328 | toString() { |
| 329 | let value = this[kInternalState].get('pem'); |
| 330 | if (value === undefined) { |
| 331 | value = this[kHandle].pem(); |
| 332 | this[kInternalState].set('pem', value); |
| 333 | } |
| 334 | return value; |
| 335 | } |
| 336 | |
| 337 | // There's no standardized JSON encoding for X509 certs so we |
| 338 | // fallback to providing the PEM encoding as a string. |