@peculiar/acme-data-dynamodb
About
DynamoDB data module forAutomatic Certificate Management Environment (ACME) implementing RFC 8555 framework.
Installation
npm install @peculiar/acme-data-dynamodb
Usage
import * as data from "@peculiar/acme-data-dynamodb";
import { container } from "tsyringe";
data.DependencyInjection.register(container, {
accessKeyId: "AWS_ACCESS_KEY_ID",
secretAccessKey: "AWS_ACCESS_KEY",
region: "local",
endpoint: "http://localhost:8000",
});
Data structure
Account
{
id: { "S": String },
index: { "S": "acct#" },
parentId: { "S": String },
createdAt: { "S": String },
termsOfServiceAgreed: { "BOOL": Boolean },
key: {
"M": {
key_ops: { "L": [{ "S": String }] },
ext: { "BOOL": Boolean },
kty: { "S": String },
alg: { "S": String },
e: { "S": String },
n: { "S": String }
...others
}
},
contacts: { "L": [{ "S": String }] },
status: { "S": String }
},
Order
{
id: { "S": String },
index: { "S": "order#HashIdentifier#Data" },
parentId: { "S": String },
identifier: { "S": String },
expires: { "S": String },
authorizations: { "L": [{ "S": String }] },
status: { "S": String }
certificate: { "M": {
thumbprint: { "S": String },
id: { "S": String },
rawData: { "S": String },
status: { "S": String }
}
},
},
Certificate
{
id: { "S": String },
index: { "S": "cert#" },
parentId: { "S": String },
},
Authorization
{
id: { "S": String },
index: { "S": "authz#HashIdentifier#Data" },
parentId: { "S": String },
status: { "S": String }
expires: { "S": String },
orders: { "L": [{ "S": String }] },
identifier: { "M": {
type: { "S": String },
value: { "S": String }
}
},
}
Challenge
{
id: { "S": String },
index: { "S": "challenge#" },
parentId: { "S": String },
validated: { "S": String },
errorId: { "S": String },
type: { "S": String },
status: { "S": String },
token: { "S": String }
}