Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b1a6127 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Revert "Browser: Sign with user-keys if its available"

This reverts commit c1319b0c
parent b07715f4
Loading
Loading
Loading
Loading
+3 −15
Original line number Diff line number Diff line
@@ -577,22 +577,10 @@ func processMainCert(m android.ModuleBase, certPropValue string, certificates []
		var mainCert Certificate
		if certPropValue != "" {
			defaultDir := ctx.Config().DefaultAppCertificateDir(ctx)

			userKeyBasePath := "user-keys/" + certPropValue
			userPemPath := android.ExistentPathForSource(ctx, userKeyBasePath+".x509.pem")
			userKeyPath := android.ExistentPathForSource(ctx, userKeyBasePath+".pk8")

			if certPropValue == "platform" && userPemPath.Valid() && userKeyPath.Valid() {
				mainCert = Certificate{
					Pem: userPemPath.Path(),
					Key: userKeyPath.Path(),
				}
			} else {
			mainCert = Certificate{
				Pem: defaultDir.Join(ctx, certPropValue+".x509.pem"),
				Key: defaultDir.Join(ctx, certPropValue+".pk8"),
			}
			}
		} else {
			pem, key := ctx.Config().DefaultAppCertificate(ctx)
			mainCert = Certificate{