Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

open_ssl_pkey_ed

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open_ssl_pkey_ed

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

OpenSSLPKeyED

This gem can encode/decode OpenSSL::PKey (EC/RSA) to der/pem format

OpenSSL::PKey::EC class API is inconsistent with RSA, DSA and DH.

  • refs: https://github.com/ruby/openssl/issues/29
  • refs: https://github.com/ruby/openssl/issues/233

Also, OpenSSL::PKey::EC#public_key returns EC::Point class that does not has to_der / to_pem. This gem provieds to_der method to solve it problem.

Installation

Add this line to your application's Gemfile:

gem 'open_ssl_pkey_ed'

Usage

encode to der format

OpenSSLPKeyED.to_der(pubkey)

TODO

  • add support for EC to pem format
  • add support for DSA/DH

FAQs

Package last updated on 19 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc