自签名证书
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
openssl pkcs12 -export -in cert.pem -inkey key.pem -certfile cert.pem -out keystore.p12
keytool -import -v -trustcacerts -alias client-alias -file cert.pem -keystore client.jks -keypass 123456 -storepass 123456
keytool -importkeystore -srckeystore keystore.p12 -srcstoretype pkcs12 -destkeystore server.jks -deststoretype JKS
bcprov-ext-jdk15on-166.jar
keytool -importkeystore -srckeystore keystore.p12 -srcstoretype pkcs12 -destkeystore ./android.bks -deststoretype bks -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath /usr/local/jdk1.8.0_201/jre/lib/ext/bcprov-ext-jdk15on-166.jar