Certificate via API

I want to get certificate from my pritunl server using API. Is this possible?

So that I can access the API, and get the file

The SSL certificate would be returned from GET /settings or sudo pritunl get app.server_cert and sudo pritunl get app.server_key.

I’m talking about a certificate for the user. Can I get it through APi?

It can be downloaded with the profile using the path GET /key/<org_id>/<user_id>.tar. The certificate cannot be retrieved separately.