Closed jack-robson closed 4 months ago
Hi!
Calling the agent.x509.createSelfSignedCertificate
is being called with the wrong arguments.
const cert = await agent.x509.createSelfSignedCertificate({
key: myKey,
extensions: [
- // @ts-expect-error - Object literal may only specify known properties, and 'type' does not exist in type '{ type: "url" | "dns"; value: string; }[]'.ts(2353)
- { type: "url", value: "animo.id" },
+ [{ type: "url", value: "animo.id" }],
- // @ts-expect-error - Object literal may only specify known properties, and 'type' does not exist in type '{ type: "url" | "dns"; value: string; }[]'.ts(2353)
- { type: "dns", value: "paradym.id" },
+ [{ type: "dns", value: "paradym.id" }],
],
});
Every extension can have mulitple entries and you can have multiple extensions, so it has to be a list of lists.
Awesome, thanks!
Trying to use
createSelfSignedCertificate
but getting type errors (commented in code). If I ignore the type errors, I get this error:Code:
Packages: