We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36adb13 commit 9640030Copy full SHA for 9640030
test/lib/fake-cert.js
@@ -32,6 +32,11 @@ const selfCert = require('self-cert')
32
*/
33
module.exports = function fakeCert({ commonName = null } = {}) {
34
const cert = selfCert({
35
+ // We set the certificate bits to 1,024 because we don't need 4,096 bit
36
+ // certificates for tests. This speeds up certificate generation time by
37
+ // a significant amount, and thus speeds up tests that rely on these
38
+ // certificates.
39
+ bits: 1_024,
40
attrs: {
41
commonName: commonName,
42
stateName: 'Georgia',
0 commit comments