mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Make client cert stronger
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
239c236ceb
commit
c8915f20da
@ -196,9 +196,13 @@ public class WebViewLoginController extends BaseController {
|
|||||||
|
|
||||||
KeyChain.choosePrivateKeyAlias(getActivity(), alias -> {
|
KeyChain.choosePrivateKeyAlias(getActivity(), alias -> {
|
||||||
try {
|
try {
|
||||||
PrivateKey changPrivateKey = KeyChain.getPrivateKey(getActivity(), alias);
|
if (alias != null) {
|
||||||
X509Certificate[] certificates = KeyChain.getCertificateChain(getActivity(), alias);
|
PrivateKey privateKey = KeyChain.getPrivateKey(getActivity(), alias);
|
||||||
request.proceed(changPrivateKey, certificates);
|
X509Certificate[] certificates = KeyChain.getCertificateChain(getActivity(), alias);
|
||||||
|
request.proceed(privateKey, certificates);
|
||||||
|
} else {
|
||||||
|
request.cancel();
|
||||||
|
}
|
||||||
} catch (KeyChainException e) {
|
} catch (KeyChainException e) {
|
||||||
Log.e(TAG, "Failed to get keys via keychain exception");
|
Log.e(TAG, "Failed to get keys via keychain exception");
|
||||||
request.cancel();
|
request.cancel();
|
||||||
|
Loading…
Reference in New Issue
Block a user