Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OPCUACertificateManager

Hierarchy

  • CertificateManager
    • OPCUACertificateManager

Implements

Index

Constructors

constructor

Properties

automaticallyAcceptUnknownCertificate

automaticallyAcceptUnknownCertificate: boolean

configFile

configFile: string

privateKey

privateKey: string

randomFile

randomFile: string

rejectedFolder

rejectedFolder: string

rootDir

rootDir: string

trustedFolder

trustedFolder: string

untrustUnknownCertificate

untrustUnknownCertificate: boolean

Methods

Private _getCertificateStatus

  • _getCertificateStatus(certificate: Certificate, callback: function): void
  • Parameters

    • certificate: Certificate
    • callback: function
        • (err: Error | null, status?: CertificateStatus): void
        • Parameters

          • err: Error | null
          • Optional status: CertificateStatus

          Returns void

    Returns void

checkCertificate

  • checkCertificate(certificate: Certificate): Promise<StatusCode>
  • checkCertificate(certificate: Certificate, callback: StatusCodeCallback): void

createCertificateRequest

  • createCertificateRequest(params: CreateSelfSignCertificateParam): Promise<Filename>
  • createCertificateRequest(params: CreateSelfSignCertificateParam, callback: function): void
  • Parameters

    • params: CreateSelfSignCertificateParam

    Returns Promise<Filename>

  • Parameters

    • params: CreateSelfSignCertificateParam
    • callback: function
        • (err: Error | null, certificateSigningRequestFilename?: string): void
        • Parameters

          • err: Error | null
          • Optional certificateSigningRequestFilename: string

          Returns void

    Returns void

createSelfSignedCertificate

  • createSelfSignedCertificate(params: CreateSelfSignCertificateParam1): Promise<void>
  • createSelfSignedCertificate(params: CreateSelfSignCertificateParam1, callback: ErrorCallback): void
  • create a self-signed certificate for the CertificateManager private key

    Parameters

    • params: CreateSelfSignCertificateParam1

    Returns Promise<void>

  • Parameters

    • params: CreateSelfSignCertificateParam1
    • callback: ErrorCallback

    Returns void

getCertificateStatus

  • getCertificateStatus(certificate: Buffer): Promise<CertificateStatus>
  • getCertificateStatus(certificate: Buffer, callback: function): void
  • returns the certificate status trusted/rejected

    Parameters

    • certificate: Buffer

    Returns Promise<CertificateStatus>

  • Parameters

    • certificate: Buffer
    • callback: function
        • (err: Error | null, status?: CertificateStatus): void
        • Parameters

          • err: Error | null
          • Optional status: CertificateStatus

          Returns void

    Returns void

getTrustStatus

  • getTrustStatus(certificate: Certificate): Promise<StatusCode>
  • getTrustStatus(certificate: Certificate, callback: StatusCodeCallback): void

initialize

  • initialize(): Promise<void>
  • initialize(callback: function): void
  • Returns Promise<void>

  • Parameters

    • callback: function
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void

isCertificateTrusted

  • isCertificateTrusted(certificate: Certificate, callback: function): void
  • isCertificateTrusted(certificate: Certificate): Promise<string>
  • Parameters

    • certificate: Certificate
    • callback: function
        • (err: Error | null, trustedStatus: string): void
        • Parameters

          • err: Error | null
          • trustedStatus: string

          Returns void

    Returns void

  • Parameters

    Returns Promise<string>

rejectCertificate

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns void

trustCertificate

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns void

verifyCertificate

  • verifyCertificate(certificate: Certificate): Promise<string>
  • verifyCertificate(certificate: Certificate, callback: function): void
  • Verify certificate validity

    method

    verifyCertificate

    Parameters

    Returns Promise<string>

  • Parameters

    • certificate: Certificate
    • callback: function
        • (err: Error | null, status?: string): void
        • Parameters

          • err: Error | null
          • Optional status: string

          Returns void

    Returns void

Generated using TypeDoc