How to always allow insecure connection for a certain url in chrome?

Solution 1:

To allow insecure connection for a certain URL, you need to import their site certificate into your keychain and make it trusted for your HTTPS/SSL connection, so Chrome can understand that. To make it work for all web addresses, you need to import Root certificate instead.

In Chrome basically you've to click on padlock icon, then in Connection tab/Certificate Information find your insecure issuer and download CRT file which therefore can be imported into your system keychain.

GitHub - The identity of this website has not been verified. Server's certificate is not trusted.

or use the following command to save that file:

ex +'/BEGIN CERTIFICATE/,/END CERTIFICATE/p' <(echo | openssl s_client -showcerts -connect example.com:443) -scq > file.crt

Then open the file and find the option to import the certificate and make it trusted for HTTPS/SSL.

For example on OS X you can double-click on the file or drag and drop in your Keychain Access, so it'll appear in login/Certificates. Then double-click on the imported certificated and make it Always Trust for SSL.