ParsedCertificateSigningRequest
A fully decoded PKCS#10 Certificate Signing Request.
Extension fields mirror ParsedCertificate but come from the CSR's extensionRequest attribute rather than the v3 extensions block.
ts
interface ParsedCertificateSigningRequest<TMap extends ExtensionDecoderMap> {
readonly version: number;
readonly certificationRequestInfoDer: Uint8Array;
readonly subjectPublicKeyInfoDer: Uint8Array;
readonly signatureValue: Uint8Array;
readonly subject: ParsedName;
readonly signatureAlgorithmOid: string;
readonly signatureAlgorithmName: string;
readonly signatureAlgorithmParametersDer?: Uint8Array;
readonly publicKeyAlgorithmOid: string;
readonly publicKeyAlgorithmName: string;
readonly publicKeyAlgorithmParametersDer?: Uint8Array;
readonly publicKeyParametersOid?: string;
readonly requestedExtensions: readonly ParsedExtension[];
readonly basicConstraints?: BasicConstraints;
readonly keyUsage?: ParsedBitFlags<KeyUsage>;
readonly extendedKeyUsage?: readonly ExtendedKeyUsage[];
readonly subjectAltNames?: readonly SubjectAltName[];
readonly nameConstraints?: NameConstraints<ParsedNameConstraintForm>;
readonly certificatePolicies?: CertificatePolicies;
readonly policyMappings?: PolicyMappings;
readonly policyConstraints?: PolicyConstraints;
readonly inhibitAnyPolicy?: InhibitAnyPolicy;
readonly authorityInfoAccess?: readonly AuthorityInformationAccess[];
readonly crlDistributionPoints?: readonly ParsedDistributionPoint[];
readonly decodedExtensions?: readonly DecodedExtensionValue<unknown>[];
readonly decodedExtensionMap?: DecodedExtensionMap<TMap>;
}Properties
readonlyversion:number— PKCS#10 version number (always 1).readonlycertificationRequestInfoDer:Uint8Array— DER encoding of the CertificationRequestInfo, used for signature verification.readonlysubjectPublicKeyInfoDer:Uint8Array— DER encoding of the SubjectPublicKeyInfo.readonlysignatureValue:Uint8Array— Raw signature bytes (BIT STRING content, padding removed).readonlysubject:ParsedName— Distinguished name the requester wants on the certificate.readonlysignatureAlgorithmOid:string— OID of the algorithm used to sign this CSR.readonlysignatureAlgorithmName:string— Human-readable signature algorithm name (e.g."ECDSA with SHA-256").readonlysignatureAlgorithmParametersDer?:Uint8Array— DER-encoded parameters for the signature algorithm. Absent for algorithms with no parameters.readonlypublicKeyAlgorithmOid:string— OID of the subject's public key algorithm.readonlypublicKeyAlgorithmName:string— Human-readable public key algorithm name (e.g."EC P-256").readonlypublicKeyAlgorithmParametersDer?:Uint8Array— DER-encoded parameters for the public key algorithm.readonlypublicKeyParametersOid?:string— OID of the named curve or other key sub-parameter, when present.readonlyrequestedExtensions:readonlyParsedExtension[]— All requested extensions as rawParsedExtensions.readonlybasicConstraints?:BasicConstraints— Decoded Basic Constraints from the extensionRequest attribute.readonlykeyUsage?:ParsedBitFlags<KeyUsage> — Decoded Key Usage from the extensionRequest attribute.readonlyextendedKeyUsage?:readonlyExtendedKeyUsage[]— Decoded Extended Key Usage from the extensionRequest attribute.readonlysubjectAltNames?:readonlySubjectAltName[]— Decoded Subject Alternative Names from the extensionRequest attribute.readonlynameConstraints?:NameConstraints<ParsedNameConstraintForm> — Decoded Name Constraints from the extensionRequest attribute.readonlycertificatePolicies?:CertificatePolicies— Decoded Certificate Policies from the extensionRequest attribute.readonlypolicyMappings?:PolicyMappings— Decoded Policy Mappings from the extensionRequest attribute.readonlypolicyConstraints?:PolicyConstraints— Decoded Policy Constraints from the extensionRequest attribute.readonlyinhibitAnyPolicy?:InhibitAnyPolicy— Decoded Inhibit anyPolicy from the extensionRequest attribute.readonlyauthorityInfoAccess?:readonlyAuthorityInformationAccess[]— Decoded Authority Information Access from the extensionRequest attribute.readonlycrlDistributionPoints?:readonlyParsedDistributionPoint[]— Decoded CRL Distribution Points from the extensionRequest attribute.readonlydecodedExtensions?:readonlyDecodedExtensionValue<unknown>[]— Custom-decoded extensions fromParseOptions.decoders.readonlydecodedExtensionMap?:DecodedExtensionMap<TMap> — Custom-decoded extensions fromParseOptions.decoderMap.