Need a solution to add a root certificate to GeckoView
Categories
(GeckoView :: General, enhancement)
Tracking
(Not tracked)
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.
Reporter | ||
Comment 1•1 year ago
|
||
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.
Reporter | ||
Comment 2•1 year ago
|
||
Reporter | ||
Comment 3•1 year ago
|
||
Comment on attachment 9388880 [details]
ccaindia2022.cer
Here is the root certificate, i need to add
Updated•1 year ago
|
Description
•