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

jeffshantz / hyperkit / 39
99%

Build:
DEFAULT BRANCH: master
Ran 28 Jan 2019 05:26AM UTC
Jobs 3
Files 24
Run time 1min
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

pending completion
39

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

1 of 1 new or added line in 1 file covered. (100.0%)

2746 of 2771 relevant lines covered (99.1%)

251.88 hits per line

Jobs
ID Job ID Ran Files Coverage
4 39.4 (2.0) 28 Jan 2019 05:26AM UTC 0
99.1
Travis Job 39.4
5 39.5 (2.1) 28 Jan 2019 05:26AM UTC 0
99.1
Travis Job 39.5
6 39.6 (2.2) 28 Jan 2019 05:27AM UTC 0
99.1
Travis Job 39.6
Source Files on build 39
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #39
  • f553cf4f on github
  • Prev Build on master (#36)
  • Next Build on master (#42)
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

© 2025 Coveralls, Inc