FR Certificate API for DA

netearth

Verified User
Joined
Aug 5, 2004
Messages
45
Hi All,

Can we have an additional set of tools in the DA API ?

Nice and simple and we can help with it :)

Check DA Version
Create Keys
Creaste CSR
Install Cert
Backup Cert
Backup Keys
Remove Cert
Remove Keys


Thanks,
Chris
 
Hello,

I believe that CMD_API_SSL can do all of this for you already.
Note that CMD_API_SSL is the exact same as CMD_SSL, except the output generated is different. Any post made to CMD_SSL (by a browser) can also be made to CMD_API_SSL.

http://www.directadmin.com/features.php?id=514


The DA version is included with every single http request response header.

John
 
Hello,

I believe that CMD_API_SSL can do all of this for you already.
Note that CMD_API_SSL is the exact same as CMD_SSL, except the output generated is different. Any post made to CMD_SSL (by a browser) can also be made to CMD_API_SSL.

http://www.directadmin.com/features.php?id=514


The DA version is included with every single http request response header.

John

Hi John,

Thanks, do you have the remove and backup options anywhere (for ssl), or is there a way to do it remotely over ssh if you can tell us where it is implicitly installed?

You could well be wondering why, it is because we are making remote installers for control panels, well DA and cp only at this time.

It is because one of our sites will be selling ssl, and this would be an option when doing remote install. :)

Thanks,
Chris
 
Hello,

By backup, if you're just looking to get a copy of the current cert/key, you'd call:
CMD_API_SSL
method: GET
domain=domain.com

without any options apart from the domain name.
DA will return the cert/key, then you can do what you wish with them.

To "remove" a certificate, it's basically just the process of changing the domain to use the server's shared certificate, instead of using a posted cert/key. It would be as simple as:
CMD_API_SSL
method: POST
domain=domain.com
action=save
type=server

John
 
Back
Top