Skip to content

LogInsight API - Upload Certificate #8

@dboc

Description

@dboc

Hi,

Could you add examples how to use the method https://vmw-loginsight.github.io/#certificate . There is not any example for this method.

Another question, this method is for update the Log Insight Certificate?

I am trying to automate the renew of a LetsEncrypt cert. I tried this:
Auth

curl -d @auth.json -H "Content-Type: application/json"  https://vli.prodest.es.gov.br/api/v1/sessions

Test by getting time:

curl -H "Authorization: Bearer <mybearertoken>" https://vli.prodest.es.gov.br/api/v1/time

Then try to upload a cert, PEM format

curl -X POST -H "Content-Type: multipart/form-data" -F "data=@vli.pem" -H "Authorization: Bearer <mybearertoken> https://vli.prodest.es.gov.br/api/v1/certificate

the answer: Invalid certificate file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions