Check SSL certificates plugin for Infrataster
Add this line to your application's Gemfile:
gem 'infrataster-plugin-ssl_certificates'
And then add the following line to your spec_helper.rb:
require 'infrataster-plugin-ssl_certificates'
# spec/example_spec.rb
reuqire 'spec_helper'
describe server(:app) do
describe domain('example.com') do
it { expect(certificate.serial).to eq(1234567) }
it { expect(certificate.not_after.to_s).to eq("2015-12-31 18:00:00 UTC") }
end
end
You can specify port number by options passed to Infrataster::Server.define in spec_helper.rb:
Infrataster::Server.define(
:app,
'192.168.33.10',
ssl: { port: 8443 }
)
- Fork it ( https://github.com/[my-github-username]/infrataster-plugin-ssl_certificates/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request