MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / constructor

Method constructor

modules/crypt/ssl/ssl_cert.js:57–63  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

55 #clientKey;
56
57 constructor(options) {
58 this.#verify = options.verify ?? true;
59 if (options.certificate)
60 this.register(options.certificate);
61 this.#clientCertificates = options.clientCertificates;
62 this.#clientKey = options.clientKey;
63 }
64 getCerts() {
65 // return the self certs
66 return [getResource("srvcert.der")];

Callers

nothing calls this directly

Calls 1

registerMethod · 0.95

Tested by

no test coverage detected