Sometimes we use a self-sign certificate on web server for development. On most of the OS and browser, it will prompt and alert you that you are at risk to accept this certificate because it does not have known CA
authority signed. And that's okay since you often use this for testing anyway, so you would normally just "Accept" the risk and "Proceed" anyway. The browser will let you continue as normal.
However if you are using a MacOS system, it will not let you proceed! You would need the following to get pass the Trust certificate in order to proceed.
-
Visit the site and the click the URL icon to show the Certificate.
-
Drag the certificate onto the Desktop and save it as
.cer
file. -
Open "Keychain Access" app and import the
.cer
file. -
Double click the import cerficate and expand "Trust" selection and set to "Always Trust"
-
Save and exit "Keychain Access"
-
Restart browser (eg: Chrome) and revisit site again.
NOTE: If you don't restart browser, the certificate will continue to fail!