46d59b48b5
Updated all GitHub URLs from cpfarhood to privilegedescalation organization: - Repository URLs in package.json and Artifact Hub metadata - Documentation links and references - Git remote updated No functional changes - this is purely an organizational migration. Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
31 lines
1.0 KiB
Markdown
31 lines
1.0 KiB
Markdown
[**Headlamp Sealed Secrets API v0.2.0**](../../../README.md)
|
|
|
|
***
|
|
|
|
[Headlamp Sealed Secrets API](../../../README.md) / [lib/crypto](../README.md) / parseCertificateInfo
|
|
|
|
# Function: parseCertificateInfo()
|
|
|
|
> **parseCertificateInfo**(`pemCert`): [`Result`](../../../types/type-aliases/Result.md)\<[`CertificateInfo`](../../../types/interfaces/CertificateInfo.md), `string`\>
|
|
|
|
Defined in: [src/lib/crypto.ts:168](https://github.com/privilegedescalation/headlamp-sealed-secrets-plugin/blob/bdf19cd3bf5a2d679b7ba949108fe9df1843c5f4/headlamp-sealed-secrets/src/lib/crypto.ts#L168)
|
|
|
|
Parse certificate and extract metadata
|
|
|
|
Extracts validity dates, issuer/subject information, and calculates
|
|
expiration status and fingerprint.
|
|
|
|
## Parameters
|
|
|
|
### pemCert
|
|
|
|
[`PEMCertificate`](../../../types/type-aliases/PEMCertificate.md)
|
|
|
|
PEM-encoded certificate string (branded type)
|
|
|
|
## Returns
|
|
|
|
[`Result`](../../../types/type-aliases/Result.md)\<[`CertificateInfo`](../../../types/interfaces/CertificateInfo.md), `string`\>
|
|
|
|
Result containing certificate information or error message
|