class Namecheap::Ssl

Public Instance Methods

activate(id, options = {}) click to toggle source

Activates a newly purchased SSL certificate. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:activate

# File lib/namecheap/ssl.rb, line 5
def activate(id, options = {})
  options = {:CertificateID => id}.merge(options)
  get 'ssl.activate', options
end
create(options = {}) click to toggle source

Creates a new SSL certificate. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:create

# File lib/namecheap/ssl.rb, line 39
def create(options = {})
  get 'ssl.create', options
end
get_approver_email_list(domain, options = {}) click to toggle source

Gets approver email list for the requested domain. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:getapproveremaillist

# File lib/namecheap/ssl.rb, line 26
def get_approver_email_list(domain, options = {})
  options = {:DomainName => domain}.merge(options)
  get 'ssl.getApproverEmailList', options
end
get_info(id, options = {}) click to toggle source

Retrieves information about the requested SSL certificate. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:getinfo

# File lib/namecheap/ssl.rb, line 12
def get_info(id, options = {})
  options = {:CertificateID => id}.merge(options)
  get 'ssl.getInfo', options
end
get_list(options = {}) click to toggle source

Returns a list of SSL certificates for a particular user. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:getlist

# File lib/namecheap/ssl.rb, line 33
def get_list(options = {})
  get 'ssl.getList', options
end
parse_csr(csr, options = {}) click to toggle source

Parsers the CSR. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:parsecsr

# File lib/namecheap/ssl.rb, line 19
def parse_csr(csr, options = {})
  options = {:csr => csr}.merge(options)
  get 'ssl.parseCSR', options
end
reissue(id, options = {}) click to toggle source

Reissues an SSL certificate. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:reissue

# File lib/namecheap/ssl.rb, line 65
def reissue(id, options = {})
  options = {:CertificateID => id}.merge(options)
  get 'ssl.reissue', options
end
renew(options = {}) click to toggle source

Renews an SSL certificate. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:renew

# File lib/namecheap/ssl.rb, line 45
def renew(options = {})
  get 'ssl.renew', options
end
resend_approver_email(id, options = {}) click to toggle source

Resends the approver email. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:resendapproveremail

# File lib/namecheap/ssl.rb, line 51
def resend_approver_email(id, options = {})
  options = {:CertificateID => id}.merge(options)
  get 'ssl.resendApproverEmail', options
end
resend_fulfillment_email(id, options = {}) click to toggle source

Resends the fulfilment email containing the certificate. @see developer.namecheap.com/docs/doku.php?id=api-reference:ssl:resendfulfillmentemail

# File lib/namecheap/ssl.rb, line 58
def resend_fulfillment_email(id, options = {})
  options = {:CertificateID => id}.merge(options)
  get 'ssl.resendfulfillmentemail', options
end