archive.social/docs/utils/CertsHistory.md

2.4 KiB

CertsHistory

thread-keeper

Author: The Harvard Library Innovation Lab
License: MIT

CertsHistory.CertsHistory

Utility class for handling the "certificates history" files. Expected structure:

[
  {
    "from": "2022-11-18 13:07:56 UTC",
    "to": "2022-11-22 19:00:00 UTC",
    "domain": "domain.ext",
    "info": "...",
    "cert": "..."
  },
  ...
]

Kind: static class of CertsHistory

certsHistory.signingFilepath : string

Complete path to signing-certs-history.json.

Kind: instance property of CertsHistory

certsHistory.timestampingFilepath : string

Complete path to timestamping-certs-history.json.

Kind: instance property of CertsHistory

CertsHistory.load([type])

Returns the parsed contents of a certificates history file. Creates said file if it doesn't exist.

Kind: static method of CertsHistory

Param Type Default Description
[type] string ""signing"" Can be "signing" or "timestamping".