HTTPS Server on Android Device Using NanoHttpd
I am trying to run an HTTPS Server on an Android device using NanoHttpd (my final goal is to run WSS server on Android). I successfully ran HTTP Server and Websocket using NanoHttpd on Android. I generated the key on MAC using this command and copied it onto my device: keytool -genkey -keystore key.keystore -storepass keypass -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider I wrote the following code: keyStore = KeyStore.getInstance("BKS"); keyStore.load(stream, keyStorePwd.toCharArray()); keyManagerFactory = KeyManagerFactory .getInstance(KeyManagerFactory