Consulter un certificat¶
-
GET
/api/partners/
(string: partner)/certificates/
(string: cert_name)¶ Renvoie le certificat demandé.
- Request Headers
Authorization – Les identifiants de l’utilisateur
- Status Codes
200 OK – Le certificat a été renvoyé avec succès
401 Unauthorized – Authentification d’utilisateur invalide
404 Not Found – Le partenaire ou le certificat demandés n’existent pas
- Response JSON Object
name (string) – Le nom du certificat
privateKey (string) – La clé privée du certificat
publicKey (string) – La clé publique du certificat
certificate (string) – Le certificat de l’entité
Exemple de requête
GET https://my_waarp_gateway.net/api/partners/waarp_sftp/certificates/certificat_waarp HTTP/1.1 Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Exemple de réponse
HTTP/1.1 200 OK Content-Type: application/json Content-Length: 197 { "name": "certificat_waarp", "privateKey": "<clé privée>", "publicKey": "<clé publique>", "cert": "<certificat>" }