npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ciphersuite-name-converter

v1.0.1

Published

A simple CLI (and possibly web) library/script to convert between openSSL and SSL/TLS ciphersuite names

Downloads

5

Readme

#ciphersuite-name-converter

A simple CLI (and possibly web) library/script to convert between (in either direction) openSSL and SSL/TLS ciphersuite names.

For example, you may have a standard SSL/TLS ciphersuite string given to you as a requirement, for (a contrived) example:

SSL_ECDHE_RSA_WITH_AES_128_GCM_SHA256 SSL_ECDHE_RSA_WITH_AES_256_GCM_SHA384 SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA256 SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA384 SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA

Which you want to use in an application which requires openssl format ciphersuite strings (for me, this is often nginx - although admittedly nginx is capable of being built with several TLS libraries nowadays). So you would want to convert the above to an openssl:

#convert-tls-to-openssl "SSL_ECDHE_RSA_WITH_AES_128_GCM_SHA256 SSL_ECDHE_RSA_WITH_AES_256_GCM_SHA384 SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA256 SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA384 SSL_ECDHE_RSA_WITH_AES_256_CBC_SHA"

#ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA

You can then configure your application with the above openssl format ciphersuite string.

##Requirements

  • NodeJS or IOJS
  • npm or git (see below)

##Installation The simplest way is via npm (-g for global install which make it globally availanle in your *nix CLI):

npm install ciphersuite-name-converter -g

Or via git clone:

git clone https://github.com/neilstuartcraig/ciphersuite-name-converter.git
npm install -g

##Usage

Get help:
convert-openssl-to-tls -h
convert-tls-to-openssl -h

Convert openSSL to TLS cipher string: 
convert-openssl-to-tls <ciphersuite string>

Convert TLS to openSSL cipher string: 
convert-tls-to-openssl <ciphersuite string>

###Ciphersuite ordering The output (converted) ciphersuite names will be in the same order as the input - ordering is preserved.

###Separators ####Input Input ciphersuite lists can use spaces or commas (or a mixture thereof) as separators

####Outputs Conversions from TLS/SSL to openSSL format use : as a separator in the output.
Conversions from openSSL to TLS/SSL format use space as a separator in the output.

##Semver This project aims to maintain the semver version numbering scheme.

##Credits The mapping between SSL/TLS and openssl ciphersuite names is derived from a page on openssl.org which describes the relationships

##License MIT