Cumulocity Web SDK - v1023.7.0
    Preparing search index...

    Class CrlService

    This class allows for managing a list of certificate revocations.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Downloads a certificate revocation list file. To open the downloaded file please use command: openssl crl -inform DER -text -noout -in fileName.crl

      Parameters

      Returns Promise<IFetchResponse>

      Returns a arrayBuffer wrapped in [[IFetchResponse]].

      Example


      (async () => {
      const res = await this.crlService.downloadCrlFile();
      const arrayBuffer = await res.arrayBuffer();
      })();
    • Uploads a csv file containing a list of certificate revocations. Adds new entries to the certificate revocation list, the ones that already exist are updated. No entries are removed from the certificate revocation list.

      File format: SERIALNO,DATE 1234567890abcdef,2023-01-01T00:00:00.000Z

      Parameters

      • file: Stream | Blob | Buffer | File

      Returns Promise<IResult<null>>

      Returns a status object.

      Example


      (async () => {
      const { res } = await crlService.uploadCrlFile( file );
      })();
    • Uploads a list of certificate revocations. Adds new entries to the certificate revocation list, the ones that already exist are updated. No entries are removed from the certificate revocation list.

      Parameters

      Returns Promise<IResult<null>>

      Returns a status object.

      Example


      const crls: ICertificateRevocation[] = [
      { serialNumberInHex: '24234', revocationDate: '2023-01-13T23:00:00.000Z' }
      ];

      (async () => {
      const { res } = await crlService.uploadCrls(crls);
      })();