Create .flipper/certs folder when necessary

Reviewed By: passy

Differential Revision: D36346367

fbshipit-source-id: 290a4a64ad3266f282f13074b2161d988a2bf2cc
This commit is contained in:
Andrey Goncharov
2022-05-13 03:19:47 -07:00
committed by Facebook GitHub Bot
parent d1ed676a48
commit b8dda9b0a7

View File

@@ -185,7 +185,7 @@ const ensureCertificateAuthorityExists = async (): Promise<void> => {
const generateCertificateAuthority = async (): Promise<void> => {
if (!(await fs.pathExists(getFilePath('')))) {
await fs.mkdir(getFilePath(''));
await fs.mkdir(getFilePath(''), {recursive: true});
}
console.log('Generating new CA', logTag);
await openssl('genrsa', {out: caKey, '2048': false});