Check out example codes for "firefoxoptions setpreference to trust certificates". It will help you in understanding the concepts better.

Code Example 1

var options = new FirefoxOptions();
options.AddAdditionalCapability("acceptSslCerts", true, true);
options.AddAdditionalCapability("acceptInsecureCerts", true, true);

var  driver = new FirefoxDriver(options);

Learn ReactJs, React Native from akashmittal.com