diff --git a/packages/plugins/plugin-lib/src/cert/convert.ts b/packages/plugins/plugin-lib/src/cert/convert.ts index 65e5eff57..211c7ff17 100644 --- a/packages/plugins/plugin-lib/src/cert/convert.ts +++ b/packages/plugins/plugin-lib/src/cert/convert.ts @@ -132,7 +132,7 @@ export class CertConverter { if (!fs.existsSync(dir)) { fs.mkdirSync(dir, { recursive: true }); } - await this.exec(`keytool -importkeystore -srckeystore ${p12Path} -srcstoretype PKCS12 -srcstorepass "${jksPassword}" -destkeystore ${jksPath} -deststoretype PKCS12 -deststorepass "${jksPassword}" `); + await this.exec(`keytool -importkeystore -srckeystore ${p12Path} -srcstoretype PKCS12 -srcstorepass "${jksPassword}" -destkeystore ${jksPath} -deststoretype JKS -deststorepass "${jksPassword}" `); fs.unlinkSync(p12Path); const fileBuffer = fs.readFileSync(jksPath);