List all TLS versions and ciphers a server supports using Axios?

65
June 26, 2021, at 02:50 AM

I'd like to use Axios to get a list of TLS versions and ciphers supported by a server.

Are there properties or functions in the request or response object that expose these values?

I'm familiar with request.connection.ssl.getCurrentCipher(), but this only returns the cipher currently being used.

Example:

const axios = require('axios').default;
axios.head('https://example.com').then(r => {
  return r.somePropertyOrMethodForTLSVersionsAndCiphers // ??
});

Related article using TLS library, not axios, and for the client not the server: List all TLS Ciphers the Client supports in Nodejs

Answer 1

A TLS client has no visibility in what the server supports. The client just offers a number of ciphers and the server accepts a single one. No information are provided to the client of what others ciphers the server might support.

The client would basically need to actually try all the ciphers by their own to see if a specific cipher is supported or not, i.e. do lots of TLS handshakes to figure out the supported ciphers. Similar for the TLS protocol version the client can only try to connect with a specific protocol and check with which protocol the server responds.

READ ALSO
Placing the Search icon under the Mobile menu

Placing the Search icon under the Mobile menu

Unfortunately, I am doing something wrongI have a function

47
JOOQ - Recursive Query

JOOQ - Recursive Query

I have the following database structure:

60
Python script that notifies me when there's an available train seat

Python script that notifies me when there's an available train seat

I am trying to write a python script that allows me to see if any of the sold-out train tickets are back available (that is when someone decides to return their ticket)

42
Dynamically finding TypeScript object values through passed in parameters

Dynamically finding TypeScript object values through passed in parameters

not sure if the title is misleading or actually is asking what I want: I am trying to get an Object's element value, but the tricky thing is that the element's name is being passed in through a function

64