Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

How to import CA certs #16993

Closed
damionx7 opened this issue Dec 12, 2020 · 10 comments
Closed

How to import CA certs #16993

damionx7 opened this issue Dec 12, 2020 · 10 comments
Labels
feature request 🌟 New functionality and improvements qa-triaged Issues triaged by qa

Comments

@damionx7
Copy link

damionx7 commented Dec 12, 2020

I have added CA cert in android but how do I import it in fenix.

┆Issue is synchronized with this Jira Task

@github-actions github-actions bot added the needs:triage Issue needs triage label Dec 12, 2020
@abodea
Copy link
Member

abodea commented Mar 8, 2021

Thank you for this report, can you add more information regarding this issue/feature request? @damionx7

@abodea abodea added feature request 🌟 New functionality and improvements qa-triaged Issues triaged by qa and removed needs:triage Issue needs triage labels Mar 8, 2021
@damionx7
Copy link
Author

damionx7 commented Mar 8, 2021

I guess one could import certificates in firefox mobile earlier as this link explains how to do it.

https://blog.felixbrucker.com/2015/10/27/how-to-import-your-own-ca-cert-into-firefox-on-android/

I tried it in fenix, but failed to do so. How can one import certificate authority in fenix ?

@ezaquarii
Copy link

ezaquarii commented Apr 11, 2021

@abodea The user have ca.crt CA certificate file for the organization's network. To access any site secured with private certificate, the CA must be imported and trusted.

This is very frequent scenario for any enterprise environment and I truly cannot comprehend why this feature has been removed or hidden in Fenix.

Running development or beta to hack it via about:config is not a solution for this problem.

@plwt
Copy link

plwt commented Dec 5, 2021

@deosrc
Copy link

deosrc commented Dec 31, 2021

Thanks to this comment, I've found something that seems to work.

  1. Import your CA certificate into Android as normal
  2. Go to firefox settings
  3. Scroll to the bottom and open "About Firefox"
  4. Tap the firefox logo until you get a toast saying developer options are enabled
  5. Go back to the settings menu and open "Secret Settings"
  6. Ensure "Use third party CA certificates is enabled
  7. Restart firefox

All of the steps may not be required. This also may change some other settings affecting the security of your browser so use with caution.

@Scrumplex
Copy link

It looks like this does not work for custom CAs installed into the system store?

@deosrc
Copy link

deosrc commented Jun 17, 2022

It looks like this does not work for custom CAs installed into the system store?

Long time since I've looked at this so not sure how I installed the cert (wish I'd been more specific than "as normal"). I have a CA cert installed to the user store (Settings > Security & Lock Screen > Encryption and credentials > Trusted credentials > User). I think I just used "Install a certificate" at Settings > Security & Lock Screen > Encryption and credentials.

Android 11
Oxygen OS: 11.2.9.9

@Scrumplex
Copy link

I think it works fine when you install it into the user store. But I hate that annoying warning you have in the quick settings, which is why I installed my CA certificate to the system store instead by creating a very simple Magisk module.

@nroach44
Copy link

Can confirm, if you install it into the system store (either by modifying the installed OS, or when building the OS) Firefox will not sync with or load servers that use the cert.

The only thing I've found that works for all cases is

  • Install the certificate in the user-level settings
  • THEN install it in the system

This works for Firefox (Cert must be in user store) and some other frustrating apps that don't trust the user store

@kbrosnan
Copy link
Contributor

Use third party CA certificates is the way to do this in Firefox.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request 🌟 New functionality and improvements qa-triaged Issues triaged by qa
Projects
None yet
Development

No branches or pull requests

8 participants