How can I create a self-signed cert for localhost?

Since this question is tagged with IIS and I can’t find a good answer on how to get a trusted certificate I will give my 2 cents about it: First use the command from @AuriRahimzadeh in PowerShell as administrator: New-SelfSignedCertificate -DnsName “localhost” -CertStoreLocation “cert:\LocalMachine\My” This is good but the certificate is not trusted and will … Read more

Creating .pem file for APNS?

Here is what I did, From:blog.boxedice.com and “iPhone Advanced Projects” chapter 10 byJoe Pezzillo. With the aps_developer_identity.cer in the keychain: Launch Keychain Access from your local Mac and from the login keychain, filter by the Certificates category. You will see an expandable option called “Apple Development Push Services” Right click on “Apple Development Push Services” … Read more

Failed to load resource: net::ERR_INSECURE_RESPONSE

Your resource probably use a self-signed SSL certificate over HTTPS protocol. Chromium, so Google Chrome block by default this kind of resource considered unsecure. You can bypass this this way : Assuming your frame’s URL is https://www.domain.com, open a new tab in chrome and go to https://www.domain.com. Chrome will ask you to accept the SSL … Read more

configure Git to accept a particular self-signed server certificate for a particular https remote

Briefly: Get the self signed certificate Put it into some (e.g. ~/git-certs/cert.pem) file Set git to trust this certificate using http.sslCAInfo parameter In more details: Get self signed certificate of remote server Assuming, the server URL is repos.sample.com and you want to access it over port 443. There are multiple options, how to get it. … Read more

What do I need to do to get Internet Explorer 8 to accept a self signed certificate?

How to make IE8 trust a self-signed certificate in 20 irritating steps Browse to the site whose certificate you want to trust. When told “There is a problem with this website’s security certificate.”, choose “Continue to this website (not recommended).” Select Tools➞Internet Options. Select Security➞Trusted sites➞Sites. Confirm the URL matches, and click “Add” then “Close”. … Read more

Error: unable to verify the first certificate in nodejs

unable to verify the first certificate The certificate chain is incomplete. It means that the webserver you are connecting to is misconfigured and did not include the intermediate certificate in the certificate chain it sent to you. Certificate chain It most likely looks as follows: Server certificate – stores a certificate signed by intermediate. Intermediate … Read more

Trust Anchor not found for Android SSL Connection

Contrary to the accepted answer you do not need a custom trust manager, you need to fix your server configuration! I hit the same problem while connecting to an Apache server with an incorrectly installed dynadot/alphassl certificate. I’m connecting using HttpsUrlConnection (Java/Android), which was throwing – javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. … Read more

How to use NSURLConnection to connect with SSL for an untrusted cert?

There is a supported API for accomplishing this! Add something like this to your NSURLConnection delegate: – (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace { return [protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]; } – (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge { if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) if ([trustedHosts containsObject:challenge.protectionSpace.host]) [challenge.sender useCredential:[NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust] forAuthenticationChallenge:challenge]; [challenge.sender continueWithoutCredentialForAuthenticationChallenge:challenge]; } Note that connection:didReceiveAuthenticationChallenge: can send its message to challenge.sender (much) … Read more

Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The problem appears when your server has self signed certificate. To workaround it you can add this certificate to the list of trusted certificates of your JVM. In this article author describes how to fetch the certificate from your browser and add it to cacerts file of your JVM. You can either edit JAVA_HOME/jre/lib/security/cacerts file … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)