🔗 API REST SSLCI

Vous pouvez effectuer des opérations de certificat SSL par programmation avec l'API REST SSLCI.com. Toutes les demandes sont adressées à https://www.sslci.com/api.

🔐 Authentification

Vous devez envoyer des jetons dans toutes les requêtes API. Vous pouvez envoyer le token de 3 manières :

📋 points de terminaison

GET /api – SSL et liste de commandes
Il répertorie tous vos certificats SSL et commandes en attente.
curlcurl -X GET "https://www.sslci.com/api?token=YOUR_TOKEN"

Réponse réussie

json{ "status": true, "certificates": [ { "crt_id": 1, "domains": "example.com", "add_time": 1715000000, "end_time": 1722776000 } ], "pending_orders": [ { "order_id": 5, "domains": "test.com", "status": "pending" } ] }
POST /api – Demande de vérification de domaine
Génère un code de vérification HTTP ou DNS pour un seul domaine. Un seul domaine est accepté.

Paramètre

ParamètreMédecineObligatoireDescription
tokenstringJeton API
domainstringDomaine à vérifier (unique)
methodstringhttp ou DNS
curlcurl -X POST https://www.sslci.com/api \ -H "Content-Type: application/json" \ -d '{"token":"YOUR_TOKEN","domain":"example.com","method":"http"}'

Réponse réussie

json{ "status": true, "domain": "example.com", "order_id": 42, "verification": { "method": "http", "token": "abc123...", "content": "abc123...thumbprint", "file_path": "/.well-known/acme-challenge/abc123...", "url": "http://example.com/.well-known/acme-challenge/abc123..." } }
PUT /api – Confirmation de vérification du domaine
Déclenche la vérification après avoir placé le fichier/enregistrement de vérification. Il authentifie uniquement, ne crée pas de SSL.

Paramètre

ParamètreMédecineObligatoireDescription
tokenstringJeton API
domainstringDomaine à vérifier
order_idintID de commande (facultatif, trouvé automatiquement)
methodstringhttp ou DNS (par défaut : http)
curlcurl -X PUT https://www.sslci.com/api \ -H "Content-Type: application/json" \ -d '{"token":"YOUR_TOKEN","domain":"example.com"}'
POST /api (action=finalize) – Création d'un certificat SSL
Crée un certificat SSL avec des domaines pré-vérifiés. Tous les domaines doivent avoir été vérifiés au cours des 29 derniers jours.

Paramètre

ParamètreMédecineObligatoireDescription
tokenstringJeton API
actionstringvaleur constante finalisée
domainsarrayListe de domaines (pré-vérifiée)
curlcurl -X POST https://www.sslci.com/api \ -H "Content-Type: application/json" \ -d '{"token":"YOUR_TOKEN","action":"finalize","domains":["a.com","b.com","c.com"]}'

Réponse réussie

json{ "status": true, "key": "-----BEGIN PRIVATE KEY-----\n...", "csr": "-----BEGIN CERTIFICATE REQUEST-----\n...", "crt": "-----BEGIN CERTIFICATE-----\n...", "ca": "-----BEGIN CERTIFICATE-----\n...", "details": { "subject": { "CN": "a.com" }, "valid_from": "2026-05-13 00:00:00", "valid_to": "2026-08-11 00:00:00", "san": "DNS:a.com, DNS:b.com, DNS:c.com" } }
DELETE /api – SSL / Suppression de commande
Supprime le certificat SSL ou annule la commande en attente. Seuls les enregistrements vous appartenant peuvent être supprimés.

Paramètre

ParamètreMédecineObligatoireDescription
tokenstringJeton API
typestringSSL ou commande
idintcrt_id (ssl) ou order_id (commande)
curlcurl -X DELETE https://www.sslci.com/api \ -H "Content-Type: application/json" \ -d '{"token":"YOUR_TOKEN","type":"ssl","id":15}'

🔄 Streaming SSL SAN/multi-domaines

Pour obtenir un certificat SSL avec plusieurs domaines, procédez comme suit :

  1. Obtenez un code de vérification via POST pour chaque domaine séparément
  2. Insérer un fichier de vérification/un enregistrement DNS
  3. Confirmez la vérification avec PUT séparément pour chaque domaine
  4. Une fois tous les domaines vérifiés, envoyez tous les domaines avec POST action=finalize
  5. Votre certificat SSL est généré instantanément (puisque les domaines sont déjà vérifiés)

⚠️ Codes d'erreur

HTTP KoduAnlam
200réussi
400Demande invalide (paramètre manquant/incorrect)
401Échec de l'authentification (jeton invalide)
403Accès non autorisé (l'enregistrement ne vous appartient pas)
405Méthode HTTP non prise en charge
500Erreur de serveur
API REST SSLCI v1.0 | Solutions informatiques