Command prompt to check TLS version required by a host

You can check using following commands. For TLS 1.2: openssl s_client -connect www.google.com:443 -tls1_2 For TLS 1.1: openssl s_client -connect www.google.com:443 -tls1_1 For TLS 1: openssl s_client -connect www.google.com:443 -tls1 If you get the certificate chain and the handshake then the TLS version is supported. If you don’t see the certificate chain, and something similar … Read more

Are there any disadvantages to using a 4096-bit encrypted SSL certificate?

Pretty much all* browsers will support 4096-bit keys. The issue you’ll run into is that key exchange is slower with larger keys, which will increase load on the server and slow down page loading on the client. 2048-bit keys are generally considered safe for the time being. If you want an intermediate step, though, 3072-bit … Read more

Why isn’t it possible to use a CNAME redirect with HTTPS

Assume you have a CNAME record: travel-maps.example.com CNAME c.commondatastorage.googleapis.com. Browser resolves name travel-maps.example.com and gets IP for c.commondatastorage.googleapis.com, then connects to port 443 of this address. Server with this IP couldn’t possibly[1] have proper certificate for travel-maps.example.com (and all other domain names with CNAME records like this). Only example.com domain owner could get a trusted … Read more

Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]

Change <serviceMetadata httpsGetEnabled=”true”/> to <serviceMetadata httpsGetEnabled=”false”/> You’re telling WCF to use https for the metadata endpoint and I see that your’e exposing your service on http, and then you get the error in the title. You also have to set <security mode=”None” /> if you want to use HTTP as your URL suggests.

Difference between https protocol and SSL Certificate

HTTPS is HTTP (HyperText Transfer Protocol) plus SSL (Secure Socket Layer). You need a certificate to use any protocol that uses SSL. SSL allows arbitrary protocols to be communicated securely. It enables clients to (a) verify that they are indeed communicating with the server they expect and not a man-in-the-middle and (b) encrypt the network … Read more

Laravel generate secure https URL from route

UPDATE: As pointed out in the comments, a simpler way of doing this would be adding URL::forceSchema(‘https’); for Laravel version between 4.2-5.3 or URL::forceScheme(‘https’); for version 5.4+ in the boot method of your AppServiceProvider file. Old answer: It’s actually entirely possible and there’s only one line of code needed to accomplish that. Laravel doesn’t check … Read more

HTTPS request in NodeJS

Comparing what headers curl and node sent, i found that adding: headers: { accept: ‘*/*’ } to options fixed it. To see which headers curl sends, you can use the -v argument. curl -vIX GET https://openshift.redhat.com/broker/rest/api In node, just console.log(req._headers) after req.end(). Quick tip: You can use https.get(), instead of https.request(). It will set method … Read more

Java and HTTPS url connection without downloading certificate

The reason why you don’t have to load a certificate locally is that you’ve explicitly chosen not to verify the certificate, with this trust manager that trusts all certificates. The traffic will still be encrypted, but you’re opening the connection to Man-In-The-Middle attacks: you’re communicating secretly with someone, you’re just not sure whether it’s the … Read more

Error “You’re accessing the development server over HTTPS, but it only supports HTTP”

I think you should create different settings.py ( base_settings.py, local_settings.py, production_settings.py). And in your settings.py do something like this: import socket if socket.gethostname()==”Raouf-PC”: from local_settings import * Change ‘Raouf-PC’ to the hostname of your PC. P:S: I’m using Windows 10. After doing that place the below data in your production_settings.py and save. Then clear your … Read more