#author("2021-12-23T18:17:18+09:00","default:ichinomoto","ichinomoto") #author("2021-12-23T18:54:57+09:00","default:ichinomoto","ichinomoto") [[tmp]] $openssl pkcs8 -inform DER -nocrypt -in platform.pk8 -out platform.pem $openssl pkcs12 -export -in platform.x509.pem -inkey platform.pem -out platform.p12 -password pass:android -name platform $keytool -importkeystore -deststorepass android -destkeystore test.keystore -srckeystore platform.p12 -srcstoretype PKCS12 -srcstorepass android ***pk8とpemからkeystoreを作る [#kb05d841] keytoolはこのあたり prebuilts/jdk/jdk9/linux-x86/bin/keytool $ openssl pkcs8 -in platform.pk8 -inform DER -outform PEM -out platform.priv.pem -nocrypt $ openssl pkcs12 -export -in platform.x509.pem -inkey platform.priv.pem -out platform.pk12 -name test $ keytool -importkeystore -srckeystore platform.pk12 -srcstoretype pkcs12 -destkeystore test.keystore -deststoretype pkcs12 -alias test ***apksignerで署名 [#m6a2f00d] apksignerはこのあたり \AppData\Local\Android\Sdk\build-tools\31.0.0\apksigner.bat 適用 apksigner.bat sign --ks test.keystore app-debug.apk チェック apksigner.bat verify -v .\app-debug.apk