Hi,
I think filename is the payload of file (using base64 encoding ?)
What do you have when make a get ?
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
------------------------------
Original Message:
Sent: Nov 20, 2023 06:26 AM
From: jonlar
Subject: Upload certificate to Mobility Conductor / Controllers
Do you mean the https://mobilitymaster:4343/api/
documentation thing?
It only says this:
{
"cert_type": "ServerCert",
"name": "string",
"filename": "string"
}
But the filename
parameter is just a string, it is not the file itself.
Original Message:
Sent: Nov 18, 2023 04:52 AM
From: alagoutte
Subject: Upload certificate to Mobility Conductor / Controllers
What the API swagger about body ? because i think you need to "upload" the certificate
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
Original Message:
Sent: Nov 17, 2023 10:34 AM
From: jonlar
Subject: Upload certificate to Mobility Conductor / Controllers
I'm using the REST API for Mobility Master, trying to automate cert-renewal.
I am able to get a list of existing certificates, but when I try to use post, it doesn't work.
I'm using this API request:
https://mobilitymaster:4343/v1/configuration/object/crypto_local_pki_cert?config_path=%2Fmd%2FLocation%2F00:00:00:00:00:00
body = {'cert_type':"ServerCert","name":"testcert","filename":"certificate.pfx"}
However, the certificate itself is not attached to this request, and I don't know how to add it.