endpoint_info.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. THE INFO ENDPOINT
  2. Endpoint: /api/v1/cfssl/info
  3. Method: POST
  4. Required parameters:
  5. * label: a string specifying the signer
  6. Optional parameters:
  7. * profile: a string specifying the signing profile for the signer.
  8. Signing profile specifies what key usages should be used and
  9. how long the expiry should be set
  10. Result:
  11. The returned result is a JSON object with three keys:
  12. * certificate: a PEM-encoded certificate of the signer
  13. * usage: a string array of key usages from the signing profile
  14. * expiry: the expiry string from the signing profile
  15. Example:
  16. $ curl -d '{"label": "primary"}' \
  17. ${CFSSL_HOST}/api/v1/cfssl/info \
  18. | python -m json.tool
  19. % Total % Received % Xferd Average Speed Time Time Time Current
  20. Dload Upload Total Spent Left Speed
  21. 100 943 100 924 100 19 44029 905 --:--:-- --:--:-- --:--:-- 46200
  22. {
  23. "errors": [],
  24. "messages": [],
  25. "result": {
  26. "certificate": "-----BEGIN CERTIFICATE-----\nMIICATCCAWoCCQDidF+uNJR6czANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJB\nVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0\ncyBQdHkgTHRkMB4XDTEyMDUwMTIyNTUxN1oXDTEzMDUwMTIyNTUxN1owRTELMAkG\nA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0\nIFdpZGdpdHMgUHR5IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAtpjl\nnodhz31kLEJoeLSkRmrv8l7exkGtO0REtIbirj9BBy64ZXVBE7khKGO2cnM8U7yj\nw7Ntfh+IvCjZVA3d2XqHS3Pjrt4HmU/cGCONE8+NEXoqdzLUDPOix1qDDRBvXs81\nKAV2qh6CYHZbdqixhDerjvJcD4Nsd7kExEZfHuECAwEAATANBgkqhkiG9w0BAQUF\nAAOBgQCyOqs7+qpMrYCgL6OamDeCVojLoEp036PsnaYWf2NPmsVXdpYW40Foyyjp\niv5otkxO5rxtGPv7o2J1eMBpCuSkydvoz3Ey/QwGqbBwEXQ4xYCgra336gqW2KQt\n+LnDCkE8f5oBhCIisExc2i8PDvsRsY70g/2gs983ImJjVR8sDw==\n-----END CERTIFICATE-----",
  27. "expiry": "8760h",
  28. "usages": [
  29. "signing",
  30. "key encipherment",
  31. "server auth",
  32. "client auth"
  33. ]
  34. },
  35. "success": true
  36. }