ChibbyTraxX
New member
- Joined
- Oct 7, 2014
- Messages
- 5
Hi all,
I've recently run into trouble using the DirectAdmin API to post SSL Certificates.
According to the API documentation I need only post the following:
domain='domain'
action='save'
type='paste'
certificate='-----BEGIN RSA PRIVATE KEY-----
[...]
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-----
'
I have tested my Key/Certificate in DirectAdmin itself, and there it is accepted without issues. However when trying to post with the API it keeps returning
'Cannot Execute Your Request. Unable to find certificate Unable to find key certificate=-----BEGIN CERTIFICATE-----[...]-----END CERTIFICATE-----'
As far as I can see I'm creating the same post data as DirectAdmin itself sends out, but it seems I'm doing something wrong.
Please note that I have implemented the API for many other calls and they work fine.
Can anyone help me find where I went wrong? Thanks in advance!
--Chibby
I've recently run into trouble using the DirectAdmin API to post SSL Certificates.
According to the API documentation I need only post the following:
domain='domain'
action='save'
type='paste'
certificate='-----BEGIN RSA PRIVATE KEY-----
[...]
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-----
'
I have tested my Key/Certificate in DirectAdmin itself, and there it is accepted without issues. However when trying to post with the API it keeps returning
'Cannot Execute Your Request. Unable to find certificate Unable to find key certificate=-----BEGIN CERTIFICATE-----[...]-----END CERTIFICATE-----'
As far as I can see I'm creating the same post data as DirectAdmin itself sends out, but it seems I'm doing something wrong.
Please note that I have implemented the API for many other calls and they work fine.
Can anyone help me find where I went wrong? Thanks in advance!
--Chibby