Skip to main content

@peculiar/x509

Enumerations

Classes

Interfaces

Type Aliases

AccessItemTypes

AccessItemTypes = GeneralName | GeneralName[] | string | string[]


AsnDataStringFormat

AsnDataStringFormat = "asn" | "text" | "hex" | "base64" | "base64url"


AsnEncodedType

AsnEncodedType = BufferSource | string


AsnExportType

AsnExportType = "pem" | AsnDataStringFormat


ExtendedKeyUsageType

ExtendedKeyUsageType = asn1X509.ExtendedKeyUsage | string


GeneralNameType

GeneralNameType = typeof DNS | typeof DN | typeof EMAIL | typeof GUID | typeof IP | typeof URL | typeof UPN | typeof REGISTERED_ID


IdOrName

IdOrName = Record<string, string>


JsonAttributeAndObjectValue

JsonAttributeAndObjectValue = Record<string, JsonAttributeObject[]>


JsonAttributeAndStringValue

JsonAttributeAndStringValue = Record<string, string[]>

JSON representation of Attribute and Value


JsonAttributeAndValue

JsonAttributeAndValue = JsonAttributeAndStringValue | JsonAttributeAndObjectValue


JsonGeneralNames

JsonGeneralNames = JsonGeneralName[]


JsonName

JsonName = JsonAttributeAndStringValue[]

JSON array of Attribute and Value


JsonNameParams

JsonNameParams = JsonAttributeAndValue[]


MapForEachCallback()

MapForEachCallback = (value, key, map) => void

Parameters

value

Crypto

key

string

map

Map<string, Crypto>

Returns

void


PemStructEncodeParams

PemStructEncodeParams = AtLeast<PemStruct, "type" | "rawData">


Pkcs10CertificateRequestCreateParamsName

Pkcs10CertificateRequestCreateParamsName = string | JsonName | Name


PublicKeyType

PublicKeyType = PublicKey | CryptoKey | IPublicKeyContainer | BufferSource

Public key type. Represents a public key in different formats.


TextObjectItemType

TextObjectItemType = string | number | boolean | Date | BufferSource | TextObject | TextObject[] | TextObjectConvertible


X509CertificateCreateParams

X509CertificateCreateParams = X509CertificateCreateWithKeyParams | X509CertificateCreateWithSignatureParams


X509CertificateCreateParamsName

X509CertificateCreateParamsName = string | JsonName | Name


X509CertificatesExportType

X509CertificatesExportType = AsnExportType | "pem-chain"

Variables

cryptoProvider

const cryptoProvider: CryptoProvider

Singleton crypto provider


diAlgorithm

const diAlgorithm: "crypto.algorithm" = "crypto.algorithm"

Dependency Injection algorithm identifier


diAlgorithmProvider

const diAlgorithmProvider: "crypto.algorithmProvider" = "crypto.algorithmProvider"


diAsnSignatureFormatter

const diAsnSignatureFormatter: "crypto.signatureFormatter" = "crypto.signatureFormatter"

Dependency injection identifier for IAsnSignatureFormatter interface


DN

const DN: "dn" = "dn"


DNS

const DNS: "dns" = "dns"


EMAIL

const EMAIL: "email" = "email"


GUID

const GUID: "guid" = "guid"


idEd25519

const idEd25519: "1.3.101.112" = "1.3.101.112"


idEd448

const idEd448: "1.3.101.113" = "1.3.101.113"


idX25519

const idX25519: "1.3.101.110" = "1.3.101.110"


idX448

const idX448: "1.3.101.111" = "1.3.101.111"


IP

const IP: "ip" = "ip"


REGISTERED_ID

const REGISTERED_ID: "id" = "id"


UPN

const UPN: "upn" = "upn"


URL

const URL: "url" = "url"