Hello aaPanel Community,
I hope this message finds you well. I am currently facing an issue with programmatically assigning SSL certificates to sites through the aaPanel API using PHP.
My attempt involves utilizing the endpoint /acme?action=apply_cert_api with parameters captured from the browser's payload during manual SSL certificate assignment via the aaPanel's site panel.
However, I have encountered uncertainties regarding the validity and expected parameters of this endpoint for API use. My primary questions are as follows:
Is the endpoint /acme?action=apply_cert_api valid for use via API calls for SSL certificate assignment? If yes, could you please clarify the parameters expected by this endpoint?
In case the aforementioned endpoint is not suitable for API interactions, could you guide me on the appropriate endpoint for SSL certificate generation and assignment via API, including the necessary parameters?
To provide more context, here are the parameters we've identified from the browser during manual SSL assignment through the aaPanel site panel. However, when attempting to replicate this action via API, we're not sure if we're using the correct endpoint or if our parameter structuring is accurate.
I have also attached screenshots showing the errors found and snippets of the PHP code I am using for this process. It is crucial for us to automate the assignment of SSL certificates for sites managed through aaPanel, and any guidance on how to achieve this would be hugely appreciated.
Thanks in advance for your time and assistance. We look forward to your valuable insights.
Yours sincerely,
Renan Grandin.