Open Bug 1883248 Opened 1 year ago Updated 1 year ago

Need a solution to add a root certificate to GeckoView

Categories

(GeckoView :: General, enhancement)

Firefox 119
All
Android
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: jerishbalakrishnan, Unassigned)

Details

Attachments

(1 file)

1.86 KB, application/x-x509-ca-cert
Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Steps to reproduce:

I am working on a GeckoView-based Web Browser project. One primary requirement of the project is to add a root certificate on the GeckoView so that it is independent of the system trust store. What is the way to do that?

Actual results:

When I add the root certificate to the system's trust store and add the following lines, it works!

GeckoRuntimeSettings.Builder runtimeSettingsBuilder = new GeckoRuntimeSettings.Builder();
runtimeSettingsBuilder.enterpriseRootsEnabled(true);
geckoRuntime = GeckoRuntime.create(this, runtimeSettingsBuilder.build());

Expected results:

But the problem is we can't install this certificate on every user's device. We need to ship it along with the browser.

Please give me some ideas to implement this.

If the certificate needs to be shipped with the code, what are the files I need to edit?

I don't have much idea about the GeckoView.

Attached file ccaindia2022.cer

Comment on attachment 9388880 [details]
ccaindia2022.cer

Here is the root certificate, i need to add

Component: Core → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: