Replace denigrated call to certificate name

This commit is contained in:
Niko Diamadis
2024-04-19 01:48:06 +02:00
parent 380e209326
commit 79584c85c1

View File

@@ -221,7 +221,7 @@ internal class LoginActivity : AppCompatActivity() {
private fun getNameOfCertContent(file: File): String? {
val ca = CertUtils.parseCertificate(FileInputStream(file))
return (ca as X509Certificate).subjectDN.name
return (ca as X509Certificate).subjectX500Principal.name
}
private fun onValidUrl(url: String): SuccessCallback<VersionInfo> {