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.