This code reads in the raw resource that is really the BKS keystore and uses it as the KeyStore class object. Note that we need to supply the password that is used to protect the keystore (the one we set when we created the keystore) so that Android can open it and access the certificate contained inside.