生成JKS
keytool -genkey -alias smartbow -keypass 123456zxcqwe123456zxcqwe -keyalg RSA -sigalg sha256withrsa -keysize 2048 -validity 365 -keystore D:/smartbow.jks -storepass 123456zxcqwe123456zxcqwe
填完信息后,确认输入y
迁移到行业标准格式 PKCS12。
keytool -importkeystore -srckeystore D:/smartbow.jks -destkeystore D:/smartbow.jks -deststoretype pkcs12
迁移格式后执行以下命令,可把后缀转为keystore
keytool -v -importkeystore -srckeystore D:/smartbow.jks -srcstoretype PKCS12 -destkeystore D:/smartbow.keystore -deststoretype JKS
keytool -genkey -alias lck(别名)
-keypass 123456(私钥密码)
-keyalg RSA(算法)
-sigalg sha256withrsa(算法小类)
-keysize 2048(密钥长度)
-validity 365(有效期)
-keystore d:/lck.jks(生成路径)
-storepass 123456(主密码)
渠道公钥证书-华为
java -jar pepk.jar --keystore smartbow.jks --alias smartbow --output=output.zip --encryptionkey=034200041E224EE22B45D19B23DB91BA9F52DE0A06513E03A5821409B34976FDEED6E0A47DBA48CC249DD93734A6C5D9A0F43461F9E140F278A5D2860846C2CF5D2C3C02 --include-cert