Bypassing SSL certificate error in jQuery and AJAX
You cannot programmatically bypass the SSL error/warning behaviour implemented by the browser, if you could it would invalidate that security layer entirely.
If you are doing this locally/in a Windows domain environment simply add the self signed cert to the trusted store.
Additionally a certificate is (typically) issued to a domain name not an IP address so you will need to do the same in your Ajax call.