Signs the declaration in a written registry, producing a detached signature
beside it. Sign after registry_write(): writing is what stamps created,
and the signature binds that stamp.
Usage
registry_sign(path, key, expires = Sys.time() + SIGNATURE_DAYS * 86400)Arguments
- path
Path to a registry file written by
registry_write().- key
Path to a secret key from
registry_keygen().- expires
When the signature stops being accepted. Re-sign an unchanged registry to extend it.
NAsigns without an expiry, which leaves nothing bounding how long a stale declaration is served.
Details
Publish the .sig alongside the registry it describes. getaca fetches it
from the registry's own URL with .sig appended.