• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jeffshantz / hyperkit / 39 / 4
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 28 Jan 2019 05:26AM UTC
Files 24
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jan 2019 05:24AM UTC coverage: 99.098%. Remained the same
2.0

push

travis-ci

jeffshantz
Let OpenSSL::PKey detect client key format automatically (#15)

Recent versions of LXD generate ECDSA keys rather than RSA keys for
client authentication, so using the `RSA` subclass of `OpenSSL::PKey` to
open them fails with the following error:

  Neither PUB key nor PRIV key: nested asn1 error (OpenSSL::PKey::RSAError)

Ruby's OpenSSL library provides a way to open any of the supported key
types, including both RSA and ECDSA, using `OpenSSL::PKey.read` [1],
which will automatically detect the format and return the subclass for
that type of key. So, in order to support both key types, we can just
use that method instead of `OpenSSL::PKey::RSA.new`.

[1]: https://ruby-doc.org/stdlib-2.6/libdoc/openssl/rdoc/OpenSSL/PKey.html#method-c-read

2746 of 2771 relevant lines covered (99.1%)

83.96 hits per line

Source Files on job 39.4 (2.0)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 35
  • Travis Job 39.4
  • f553cf4f on github
  • Prev Job for 2.0 on master (#36.4)
  • Next Job for 2.0 on master (#42.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc