Why does GitHub recommend HTTPS over SSH?

GitHub have changed their recommendation several times (example). It appears that they currently recommend HTTPS because it is the easiest to set up on the widest range of networks and platforms, and by users who are new to all this. There is no inherent flaw in SSH (if there was they would disable it) — … Read more

Is it valid to replace http:// with // in a ?

A relative URL without a scheme (http: or https:) is valid, per RFC 3986: “Uniform Resource Identifier (URI): Generic Syntax”, Section 4.2. If a client chokes on it, then it’s the client’s fault because they’re not complying with the URI syntax specified in the RFC. Your example is valid and should work. I’ve used that … Read more

Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?

You need to add the certificate for App2 to the truststore file of the used JVM located at $JAVA_HOME\lib\security\cacerts. First you can check if your certificate is already in the truststore by running the following command: keytool -list -keystore “$JAVA_HOME/jre/lib/security/cacerts” (you don’t need to provide a password) If your certificate is missing, you can get … Read more

Enabling HTTPS on express.js

In express.js (since version 3) you should use that syntax: var fs = require(‘fs’); var http = require(‘http’); var https = require(‘https’); var privateKey = fs.readFileSync(‘sslcert/server.key’, ‘utf8’); var certificate = fs.readFileSync(‘sslcert/server.crt’, ‘utf8’); var credentials = {key: privateKey, cert: certificate}; var express = require(‘express’); var app = express(); // your express configuration here var httpServer = … Read more

Are HTTPS headers encrypted?

The whole lot is encrypted† – all the headers. That’s why SSL on vhosts doesn’t work too well – you need a dedicated IP address because the Host header is encrypted. †The Server Name Identification (SNI) standard means that the hostname may not be encrypted if you’re using TLS. Also, whether you’re using SNI or … Read more

How can I make git accept a self signed certificate?

To permanently accept a specific certificate Try http.sslCAPath or http.sslCAInfo. Adam Spiers’s answer gives some great examples. This is the most secure solution to the question. To disable TLS/SSL verification for a single git command try passing -c to git with the proper config variable, or use Flow’s answer: git -c http.sslVerify=false clone https://example.com/path/to/git To … Read more

Are HTTPS URLs encrypted?

Yes, the SSL connection is between the TCP layer and the HTTP layer. The client and server first establish a secure encrypted TCP connection (via the SSL/TLS protocol) and then the client will send the HTTP request (GET, POST, DELETE…) over that encrypted TCP connection. Note however (as also noted in the comments) that the … Read more

Android 8: Cleartext HTTP traffic not permitted

According to Network security configuration – Starting with Android 9 (API level 28), cleartext support is disabled by default. Also have a look at Android M and the war on cleartext traffic Codelabs explanation from Google Option 1 – First try hitting the URL with https:// instead of http:// Option 2 – Create file res/xml/network_security_config.xml … Read more

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