Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here.

In JxBrowser 6.3 the CertificateVerifier API has been introduced. Using this API you can get information about each SSL certificate used for displaying HTTPS web pages and decide whether it should be accepted or rejected. By default, Chromium engine decides whether certificate should be accepted/rejected. You can register your own CertificateVerifier implementation to modify default behavior. For example:

import com.teamdev.jxbrowser.chromium.*;
import com.teamdev.jxbrowser.chromium.swing.BrowserView;

import javax.swing.*;
import java.awt.*;

 * The sample demonstrates how to accept/reject SSL certificates using
 * custom SSL certificate verifier.
public class CertificateVerifierSample {
    public static void main(String[] args) {
        Browser browser = new Browser();
        BrowserView view = new BrowserView(browser);

        NetworkService networkService = browser.getContext().getNetworkService();
        networkService.setCertificateVerifier(new CertificateVerifier() {
            public CertificateVerifyResult verify(CertificateVerifyParams params) {
                // Reject SSL certificate for all "" hosts.
                if (params.getHostName().contains("")) {
                    return CertificateVerifyResult.INVALID;
                return CertificateVerifyResult.OK;

        JFrame frame = new JFrame();
        frame.add(view, BorderLayout.CENTER);
        frame.setSize(700, 500);