openssl-rfc-mapping
A quick'n'dirty library and command line utility to map OpenSSL RFC to machine parseable data.
The data is taken from testssl.sh.
💽 Install
As usual in 2018, most of the software is installed through npm
, this one makes no difference:
npm install --global openssl-rfc-mapping
Be sure to have node >= 6.0.0
.
💾 Precompiled binaries
Alternatively, you can install openssl-rfc-mapping by downloading one of the precompiled executables available for Windows, Linux or Mac in the releases page.
🦔 Usage
openssl-rfc-mapping can be used from command line or programmatically.
💻 Command line usage
Once you have openssl-rfc-mapping installed you will have access to the openssl-rfc-mapping
executable (or its alias ssl-rfc-json
).
So you just have to run:
openssl-rfc-mapping
And you will get the mapping as a JSON in the standard output. The mapping will be generated in real time by parsing the data available on testssl.sh, so be sure to have internet connection.
⌨️ Programmatic usage
You can easily use the same functionality in your Node.js code as follows:
const getMapping =
getMapping
returns a promise that resolves to an object that has 2 keys:
_meta
for metadata and mapping
containing the actual mapping to the RFC spec.
The mapping will look like the following dictionary:
getMapping
will parse the source website in real time, every time you invoke it.
If you want a pre-compiled static version of it, you can import a mapping file that is
generated everytime a new version of this project is published on NPM:
const data = // do stuff with data._meta and data.mapping
👯 Contributing
Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.
🤦 License
Licensed under MIT License. © Luciano Mammino.