1.0.3 • Published 6 months ago

@types/x509.js v1.0.3

Weekly downloads
21
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/x509.js

Summary

This package contains type definitions for x509.js (https://github.com/encharm/x509.js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/x509.js.

index.d.ts

// Type definitions for x509.js 1.0
// Project: https://github.com/encharm/x509.js
// Definitions by: Stephane Moser <https://github.com/Moser-ss>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export interface Certificate {
    publicModulus: string;
    publicExponent: string;
    subject: {
        commonName: string;
        organizationalUnitName?: string;
    };
    issuer: {
        commonName: string;
        countryName?: string;
        localityName?: string;
        organizationName?: string;
        organizationalUnitName?: string;
        serialNumber?: string;
        stateOrProvinceName?: string;
    };
    serial: string;
    notBefore: string;
    notAfter: string;
    altNames: string[];
    ocspList: string[];
}
export interface Key {
    publicExponent: string;
    publicModulus: string;
}

export function parseCert(certificate: string): Certificate;
export function parseKey(key: string): Key;
export function info(): number;

Additional Details

  • Last updated: Wed, 21 Jul 2021 21:31:25 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Stephane Moser.