buildCertificate() — fastify Function Reference
Architecture documentation for the buildCertificate() function in build-certificate.js from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD a86c4ff3_dd96_13eb_da57_24a38fde157e["buildCertificate()"] 74a911e6_93f4_16a0_0111_b6a686d9563a["build-certificate.js"] a86c4ff3_dd96_13eb_da57_24a38fde157e -->|defined in| 74a911e6_93f4_16a0_0111_b6a686d9563a c96626c3_57b3_1f8a_3e70_ae4d1db7b7ba["selfCert()"] a86c4ff3_dd96_13eb_da57_24a38fde157e -->|calls| c96626c3_57b3_1f8a_3e70_ae4d1db7b7ba style a86c4ff3_dd96_13eb_da57_24a38fde157e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
test/build-certificate.js lines 94–107
function buildCertificate () {
// "global" is used in here because "t.context" is only supported by "t.beforeEach" and "t.afterEach"
// For the test case which execute this code which will be using `t.before` and it can reduce the
// number of times executing it.
if (!global.context || !global.context.cert || !global.context.key) {
const certs = selfCert({
expires: new Date(Date.now() + 86400000)
})
global.context = {
cert: certs.certificate,
key: certs.privateKey
}
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does buildCertificate() do?
buildCertificate() is a function in the fastify codebase, defined in test/build-certificate.js.
Where is buildCertificate() defined?
buildCertificate() is defined in test/build-certificate.js at line 94.
What does buildCertificate() call?
buildCertificate() calls 1 function(s): selfCert.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free