CA Certificates

Management of CA  (Certifying Authority) certificates.

Example:

GET https://192.168.2.1/api/cacertificates

{
     "code" : 200,
     "result" : {
     "cacertificates" : [ "details", "upload", "remove" ]
     },
     "status" : "success"
}

This response includes three options for CA certificates management: details, upload, and remove.

details – shows device CA certificates

Example (partially shown):

GET https://192.168.2.1/api/cacertificates/details

{  
     "code" : 200,
     "result" : [
          {

               "details" : "Certificate:\n    Data:\n        Version: 3 (0x2)\n        Serial Number: 1 (0x1)\n    Signature Algorithm: sha1WithRSAEncryption\n        Issuer: C=FR, ST=Alsace, L=Strasbourg, O=www.freelan.org, OU=freelan, CN=Freelan Sample Certificate Authority/emailAddress=contact@freelan.org\n        Validity\n            Not Before: Apr 27 10:31:18 2012 GMT\n            Not After : Apr 25 10:31:18 2022 GMT\n        Subject: C=FR, ST=Alsace, O=www.freelan.org, OU=freelan, CN=alice/emailAddress=contact@freelan.org\n        Subject Public Key Info:\n            Public Key Algorithm: rsaEncryption\n                Public-Key: (4096 bit)\n                Modulus:\n                    00:dd:6d:bd:f8:80:fa:d7:de:1b:1f:a7:a3:2e:b2:\n
...

05:16:45:15:96:59:a0:58:6c:18:0e:e3:77:66:c7:\n                    b3:f7:99\n                Exponent: 65537 (0x10001)\n        X509v3 extensions:\n            X509v3 Basic Constraints: \n                CA:FALSE\n            Netscape Comment: \n                OpenSSL Generated Certificate\n            X509v3 Subject Key Identifier: \n                59:5F:C9:13:BA:1B:CC:B9:A8:41:4A:8A:49:79:6A:36:F6:7D:3E:D7\n            X509v3 Authority Key Identifier: \n                keyid:23:6C:2D:3D:3E:29:5D:78:B8:6C:3E:AA:E2:BB:2E:1E:6C:87:F2:53\n\n    Signature Algorithm: sha1WithRSAEncryption\n         13:e7:02:45:3e:a7:ab:bd:b8:da:e7:ef:74:88:ac:62:d5:dd:\n
...
55:8f:98:25:55:c4:a6:90:bc:19:29:b1:14:d4:e2:b0:95:e4:\n         ff:89:71:61:be:8a:16:85",

               "expired" : false,
               "filename" : "E8730CC584B1EB172D71544D8913EE4736438DBF5D3C0F5BFC757E7228A97F73.crt",
               "periodFrom" : "Apr 27 10:31:18 2012 GMT",
               "periodTo" : "Apr 25 10:31:18 2022 GMT",
               "subject" : "C=FR/ST=Alsace/O=www.freelan.org/OU=freelan/CN=alice/emailAddress=contact@freelan.org"
          }
     ],
     "status" : "success"
}

upload – allows to download a CA certificate to the device

See upload example under Appendix using Curl to Manage CA Certificates.

remove – allows to remove a CA certificate on the device

See remove example under Appendix using Curl to Manage CA Certificates.