Assigning a domain name to localhost for development environment

If you edit your etc/hosts file you can assign an arbitrary host name to be set to 127.0.0.1. Open up /etc/hosts in your favorite text editor and add this line: 127.0.0.1 www.example.com Unsure of how to avoid specifying the port in the HTTP requests you make to example.com, but if you must avoid specifying that … Read more

This certificate has an invalid issuer : Keychain marks all certificates as “Invalid Issuer” [duplicate]

In Keychain access, -> View -> Show Expired Certificates, then in your login keychain click on expired certificate and delete it. I also had the same expired certificate in my System keychain, so I deleted it from there too. -> After deleting the expired cert from the login and System keychains,download certificate from below link … Read more

How to use a client certificate to authenticate and authorize in a Web API

Tracing helped me find what the problem was (Thank you Fabian for that suggestion). I found with further testing that I could get the client certificate to work on another server (Windows Server 2012). I was testing this on my development machine (Window 7) so I could debug this process. So by comparing the trace … Read more

Ignore self-signed ssl cert using Jersey Client [duplicate]

After some searching and trawling through some old stackoverflow questions I’ve found a solution in a previously asked SO question: Question: Java client certificates over HTTPS/SSL Answer Java client certificates over HTTPS/SSL Here’s the code that I ended up using. // Create a trust manager that does not validate certificate chains TrustManager[] trustAllCerts = new … Read more

SSL error downloading NLTK data

You don’t need to disable SSL checking if you run the following terminal command: /Applications/Python 3.6/Install Certificates.command In the place of 3.6, put your version of Python if it’s an earlier one. Then you should be able to open your Python interpreter (using the command python3) and successfully run nltk.download() there. This is an issue … Read more

Chrome “Active content with certificate errors”

To clear this error without a restart: Open developer tools Go to the Application tab Clear storage Close and re-open tab Commenters have pointed out the following: you must close all tabs in all windows which are open to the same domain (including subdomains) you can uncheck “cookies” before clearing storage to preserve login information … Read more

How to create self signed SSL certificate for test purposes? [closed]

You can do this via openssl: Install openssl package (if you are using Windows, download binaries here). Generate private key: openssl genrsa 2048 > private.pem Generate the self signed certificate: openssl req -x509 -days 1000 -new -key private.pem -out public.pem If needed, create PFX: openssl pkcs12 -export -in public.pem -inkey private.pem -out mycert.pfx

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