fix(TapNodeTools): Default parameter added to createHttpsCert method

This commit is contained in:
2024-09-18 00:46:52 +02:00
parent f53e5bcc83
commit d7c3752dfa
3 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class TapNodeTools {
return result;
}
public async createHttpsCert(commonName: string): Promise<{ key: string, cert: string }> {
public async createHttpsCert(commonName: string = 'localhost'): Promise<{ key: string, cert: string }> {
const key = plugins.crypto.generateKeyPairSync('rsa', {
modulusLength: 2048,
publicExponent: 65537,