antonku / ncssl_api_client

Command line interface for Namecheap SSL API
MIT License
8 stars 2 forks source link

Create PositiveSSL Multi Domain with more then 3 #9

Closed evyacik closed 5 years ago

evyacik commented 5 years ago

Hi,

The default amount of domain in PositiveSSL Multi Domain is 3 , is there a switch that I can specify a number of Domains I like to add? There is an option like this in the GUI and also in the API documentation: https://www.namecheap.com/support/api/methods/ssl/create.aspx

SANStoADD | Number | 2 | No | Defines number of add-on domains to be purchased in addition to the default number of domains included into a multi-domain certificate.

Thank you.

antonku commented 5 years ago

Hi @evyacik !

Thank you for getting back, SANStoADD has not been supported, however to meet your requirements I have added it today, and published the new version of a package (1.0.2).

Once you upgrade the package you can issue a create command with new option --sans_to_add=n, where n is the number of additional SANs to purchase, for example the full command for production env can be as follows:

ncsslapi create -t "PositiveSSL Multi Domain" --sans_to_add=3

Don't forget to add -sb should you want to run in in sandbox.

Is there any questions, please let me know.

evyacik commented 5 years ago

Hi @antonku ,

Thank you so much , it works perfectly. I have another question where do I insert the CSR key for SSL activation? https://www.namecheap.com/support/api/methods/ssl/activate.aspx

CSR | string | 32767 | Yes | Certificate Signing Request (CSR)

Thank you.

antonku commented 5 years ago

Hi @evyacik,

Thanks for the feedback!

CSR and the corresponding private key are being generated automatically when you run ncsslapi activate command. They are stored in ~/ncsslapi/certs/%current_year%/ directory.

Currently it's not possible to activate a certificate with a CSR generated beforehand, would you find this option useful, or automatic generation is sufficient?

antonku commented 5 years ago

Hi @evyacik,

I am closing this issue, since the original request has been fulfilled. Should you have any questions, please do not hesitate to open a new issue.