Class: Namecheap::Ssl

Inherits:
Api
  • Object
show all
Defined in:
lib/namecheap/ssl.rb

Constant Summary

Constants inherited from Api

Api::ENDPOINT, Api::ENVIRONMENT, Api::PRODUCTION, Api::SANDBOX

Instance Method Summary collapse

Methods inherited from Api

#delete, #get, #init_args, #post, #put, #request

Instance Method Details

#activate(id, options = {}) ⇒ Object

Activates a newly purchased SSL certificate.



5
6
7
8
# File 'lib/namecheap/ssl.rb', line 5

def activate(id, options = {})
  options = {:CertificateID => id}.merge(options)
  get 'ssl.activate', options
end

#create(options = {}) ⇒ Object

Creates a new SSL certificate.



39
40
41
# File 'lib/namecheap/ssl.rb', line 39

def create(options = {})
  get 'ssl.create', options
end

#get_approver_email_list(domain, options = {}) ⇒ Object

Gets approver email list for the requested domain.



26
27
28
29
# 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 = {}) ⇒ Object

Retrieves information about the requested SSL certificate.



12
13
14
15
# 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 = {}) ⇒ Object

Returns a list of SSL certificates for a particular user.



33
34
35
# File 'lib/namecheap/ssl.rb', line 33

def get_list(options = {})
  get 'ssl.getList', options
end

#parse_csr(csr, options = {}) ⇒ Object

Parsers the CSR.



19
20
21
22
# 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 = {}) ⇒ Object

Reissues an SSL certificate.



65
66
67
68
# File 'lib/namecheap/ssl.rb', line 65

def reissue(id, options = {})
  options = {:CertificateID => id}.merge(options)
  get 'ssl.reissue', options
end

#renew(options = {}) ⇒ Object

Renews an SSL certificate.



45
46
47
# File 'lib/namecheap/ssl.rb', line 45

def renew(options = {})
  get 'ssl.renew', options
end

#resend_approver_email(id, options = {}) ⇒ Object

Resends the approver email.



51
52
53
54
# 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 = {}) ⇒ Object

Resends the fulfilment email containing the certificate.



58
59
60
61
# File 'lib/namecheap/ssl.rb', line 58

def resend_fulfillment_email(id, options = {})
  options = {:CertificateID => id}.merge(options)
  get 'ssl.resendfulfillmentemail', options
end