From: Markus Pfeiffer Date: Tue, 21 Nov 2023 14:37:23 +0000 (+0100) Subject: android: Add password for client certificate to managed config X-Git-Tag: android-2.5.0^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a50651212f4682d9725f515ffd61d47132e2dbf;p=thirdparty%2Fstrongswan.git android: Add password for client certificate to managed config --- diff --git a/src/frontends/android/app/src/main/java/org/strongswan/android/data/VpnProfileDataSource.java b/src/frontends/android/app/src/main/java/org/strongswan/android/data/VpnProfileDataSource.java index 48aa58c35c..f95ce4734d 100644 --- a/src/frontends/android/app/src/main/java/org/strongswan/android/data/VpnProfileDataSource.java +++ b/src/frontends/android/app/src/main/java/org/strongswan/android/data/VpnProfileDataSource.java @@ -35,6 +35,7 @@ public interface VpnProfileDataSource String KEY_PASSWORD = "password"; String KEY_CERTIFICATE = "certificate"; String KEY_USER_CERTIFICATE = "user_certificate"; + String KEY_USER_CERTIFICATE_PASSWORD = "user_certificate_password"; String KEY_MTU = "mtu"; String KEY_PORT = "port"; String KEY_SPLIT_TUNNELING = "split_tunneling"; diff --git a/src/frontends/android/app/src/main/res/values/strings_managed_configuration.xml b/src/frontends/android/app/src/main/res/values/strings_managed_configuration.xml index 573a507062..6a58f62ada 100644 --- a/src/frontends/android/app/src/main/res/values/strings_managed_configuration.xml +++ b/src/frontends/android/app/src/main/res/values/strings_managed_configuration.xml @@ -89,6 +89,8 @@ @string/profile_local_id_hint_user @string/profile_user_certificate_label Base64-encoded PKCS#12-container with the client certificate and private key and optional certificate chain (the latter might cause warnings on older Android releases, see Android VPN client configuration for details). Not necessary for username/password-based EAP authentication or if the user already has the certificate/key installed as it may be selected while importing the profile + User certificate password (Optional) + Password required to extract the private key of the PKCS#12-container for installation @string/profile_rsa_pss_label @string/profile_rsa_pss_hint diff --git a/src/frontends/android/app/src/main/res/xml/managed_configuration.xml b/src/frontends/android/app/src/main/res/xml/managed_configuration.xml index 425758b205..105b3f8398 100644 --- a/src/frontends/android/app/src/main/res/xml/managed_configuration.xml +++ b/src/frontends/android/app/src/main/res/xml/managed_configuration.xml @@ -190,6 +190,13 @@ android:restrictionType="string" android:title="@string/managed_config_local_p12_title" /> + +