hammerspoon2-docs
    Preparing search index...

    Function importCertificate

    • Store the certificates in a PEM or DER file, such as a private certificate authority's, so other modules can trust them, replacing any certificates already stored under the same name. A PEM file may hold several certificates, which are all stored under the name.

      Parameters

      • name: string

        The name to store them under, which is how other modules find them. Can't be empty.

      • path: string

        The path of the PEM or DER file

      Returns void

      Throws an Error on failure; wrap calls in try/catch to handle it.