Manual fixes
This commit is contained in:
parent
4518812b33
commit
166a5076b1
2 changed files with 3 additions and 3 deletions
|
|
@ -46,7 +46,7 @@ class CertUtil private constructor(context: Context) {
|
|||
val clientCertKeyManagers = clientCert?.let { clientCertKeyManagers(it) }
|
||||
|
||||
// Determine which trust manager to use:
|
||||
// - If there is a en exception and a pinned cert, use it
|
||||
// - If there is a pinned cert (manually added cert exception), use it
|
||||
// - Otherwise, use system trust
|
||||
val trustManager: X509TrustManager = if (pinnedCert != null) {
|
||||
try {
|
||||
|
|
@ -59,8 +59,7 @@ class CertUtil private constructor(context: Context) {
|
|||
systemTrustManager()
|
||||
}
|
||||
|
||||
// Bypass hostname verification for pinned certificates. We specifically added this certificate
|
||||
// for a base URL and trusted the exception, so the CN does not have to match the hostname.
|
||||
// We selected the pinned certificate by hostname, so we can bypass hostname verification.
|
||||
// We do, however, still verify the certificate validity and ensure that the fingerprint matches.
|
||||
if (pinnedCert != null) {
|
||||
builder.hostnameVerifier(trustAllHostnameVerifier())
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@
|
|||
<string name="common_copied_to_clipboard">Vágólapra másolva</string>
|
||||
<string name="detail_instant_delivery_enabled">Azonnali küldés bekapcsolva</string>
|
||||
<string name="detail_instant_delivery_disabled">Azonnali küldés kikapcsolva</string>
|
||||
<string name="common_button_save">Mentés</string>
|
||||
<string name="detail_item_menu_open">Fájl megnyitása</string>
|
||||
<string name="detail_item_menu_delete">Fájl törlése</string>
|
||||
<string name="detail_item_menu_copy_url">URL másolása</string>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue