GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - openminds/xolphin-api-ruby: Xolphin api module for Ruby

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
examples
examples
 
 
lib/xolphin
lib/xolphin
 
 
spec
spec
 
 
.gitignore
.gitignore
 
 
.rspec
.rspec
 
 
.rubocop.yml
.rubocop.yml
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Gemfile
Gemfile
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
xolphin-api-1.5.0.gem
xolphin-api-1.5.0.gem
 
 
xolphin-api.gemspec
xolphin-api.gemspec
 
 

Repository files navigation

Xolphin API gem for Ruby

xolphin-api-ruby is a library which allows quick integration of the Xolphin REST API in Ruby to automated ordering, issuance and installation of SSL Certificates.

About Xolphin

Xolphin is the largest supplier of SSL Certificates and Digital Signatures in the Netherlands. Xolphin has a professional team providing reliable support and rapid issuance of SSL Certificates at an affordable price from industry leading brands such as Comodo, GeoTrust, GlobalSign, Thawte and Symantec.

Installation

Add this line to your application's Gemfile:

gem 'xolphin-api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install xolphin-api

Usage

Client initialization

require 'xolphin/api'

client = Xolphin::Api::Client.new('<username>', '<password>')

Requests

Getting list of requests

requests = client.request.all
requests.each do |request|
  puts request.id, request.product.id
end

Getting request by ID

request = client.request.get(960000024)
puts request.product.brand

Requesting certificate

ccr = client.request.create(24, 1, 'csr string', Xolphin::Api::DcvType::EMAIL)
ccr.address = 'Address'
ccr.approver_first_name = 'FirstName'
ccr.approver_last_name = 'LastName'
ccr.approver_phone = '+12345678901'
ccr.approver_email = '[email protected]'
ccr.zipcode = '123456'
ccr.city = 'City'
ccr.company = 'Company'
ccr.subject_alternative_names = ['test1.domain.com', 'test2.domain.com']
ccr.dcv = [{
  'domain' => 'test1.domain.com',
  'dcvType' => Xolphin::Api::DcvType::EMAIL,
  'approverEmail' => '[email protected]'
}]

request = client.request.send(ccr)
puts request.id

Reissue certificate

certificate = client.certificate.get(<certificate_id>);
request = Xolphin::Api::CertificateRequests::ReissueCertificateRequest.new(<csr_string>,"EMAIL")
client.certificate.reissue(certificate.id, request)

Renew certificate

certificate = client.certificate.get(<certificate_id>);
request = Xolphin::Api::CertificateRequests::RenewCertificateRequest.new(certificate.product.id, <years>, <csr_string>, 'FILE')
client.certificate.renew(certificate.id, request)

Create a note

result = client.request.sendNote(1234, 'message')

Get list of notes

result = client.request.getNotes(1234)
result.notes.each do |note|
  puts note.message_body, note.created_at
end

Send a "Comodo Subscriber Agreement" email

# currently available languages: en, de, fr, nl
result = client.request.sendComodoSAEmail(1234, '[email protected]', '<language>');

Request an "Encryption Everywhere" certificate

request = client.request.createEE
request.csr = "<csr_string>"
request.approver_first_name = "FirstName"
request.approver_last_name = "LastName"
request.approver_phone = "+1234567890"
request.approver_email = "[email protected]"
request.subject_alternative_names = ["test1.domain.com", "test2.domain.com"]
request.dcv_type = "FILE"
response = client.request.sendEE(request)

Certificate

Certificates list and expirations

certificates = client.certificate.all
certificates.each do |certificate|
  puts certificate.id, certificate.expired?
end

Download certificate

certificate = client.certificate.download(960000031, Xolphin::Api::FormatType::CRT)
File.write('crt.crt', certificate)

Support

Products list

products = client.support.products
products.each do |product|
  puts product.id, product.brand
end

Decode CSR

data = client.support.decode_csr('csr string')
puts data.type, data.size

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/xolphin/xolphin-api-ruby.

License

The gem is available as open source under the terms of the MIT License.

About

Xolphin api module for Ruby

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

7 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.