Skip to main content

Firefox 브라우저의 인증서 신뢰 문제

info

이 문서는 시스템 수준에서 기기를 보호하는 다기능 광고 차단기인 Android용 AdGuard에 대해 다룹니다. To see how it works, download the AdGuard app.

AdGuard가 Firefox에서 HTTPS 트래픽을 성공적으로 필터링하기 위해서는 브라우저가 AdGuard의 인증서를 신뢰해야 합니다. Firefox 버전에 따라 브라우저가 인증서를 신뢰하도록 하는 방법은 다릅니다.

Method 1

note

이 방법은 Firefox Nightly 90.0a1 이상 버전에서만 사용될 수 있습니다. Firefox의 베타 및 일반 버전이 v90에 도달하면 이 방법을 해당 버전에도 적용할 수 있습니다.

Firefox Nightly가 AdGuard 인증서를 신뢰하도록 하려면 다음 단계를 따르십시오.

  1. Run the browser.

  2. Go to SettingsAbout Firefox.

    About Firefox *mobile

  3. Tap the Firefox logo five times.

  4. Navigate to SettingsSecret Settings.

    Secret Settings *mobile

  5. Toggle Use third party CA certificates.

Method 2

note

This method will only work on rooted devices.

  1. Install and configure ADB; On the Windows platform, Samsung owners may need to install this utility.

  2. Activate the developer mode and enable USB debugging:

    • Open the Settings app on your phone;
    • Go to System section (last item in the settings menu). In this section, find the sub-item About phone;
    • Tap the Build number line 7 times. After that, you will receive a notification that You are now a developer (If necessary, enter an unlock code for the device);
    • Open System SettingsDeveloper Options → Scroll down and enable USB debugging → Confirm debugging is enabled in the window Allow USB debugging after reading the warning carefully.
  3. Install the Firefox browser (release version);

  4. Open the AdGuard settings (gear icon in the bottom right corner) → FilteringNetworkHTTPS filteringSecurity certificateInstructions for FirefoxInstall for old versions;

  5. Open the folder data/data/org.mozilla.firefox/files/mozilla using adb shell su and cd data/data/..., then browse to the folder named xxxxxxx.default and memorize its name;

  6. In the specified folder we are interested in two files:

    • cert9.db
    • key4.db
  7. We need to move these files to a folder of the browser where the security certificate issue occurred:

    • data/data/org.mozilla.<browser_name>/files/mozilla/yyyyyy.default.
  8. The full command will look like this:

    • adb shell su
    • cp -R data/data/org.mozilla.firefox/files/mozilla/xxxxxxxxxx.default/cert9.db data/data/org.mozilla.<browser_name>/files/mozilla/yyyyyyyyyy.default
    • cp -R data/data/org.mozilla.firefox/files/mozilla/xxxxxxxxxx.default/key4.db data/data/org.mozilla.<browser_name>/files/mozilla/yyyyyyyyyy.default

    In case you received the system notification permission denied, you should first move the specified files to the permission-free directory. And after that you should move them to the necessary folder in your Firefox browser.

    The full command should look something like this:

    • adb shell su
    • cp -R data/data/org.mozilla.firefox/files/mozilla/xxxxxxxx.default/cert9.db sdcard/Download
    • cp -R data/data/org.mozilla.firefox/files/mozilla/xxxxxxxxx.default/key4.db sdcard/Download
    • cp -R sdcard/Download/cert9.db data/data/org.mozilla.<browser_name>/files/mozilla/yyyyyyyyyy.default
    • cp -R sdcard/Download/key4.db data/data/org.mozilla.<browser_name>/files/mozilla/yyyyyyyyyy.default

    If adb shell su does not work, you should try adb shell initially, and then su.