intro.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. INTRODUCTION TO THE CFSSL API
  2. The CFSSL API allows applications to access the functionality of CFSSL
  3. over an unauthenticated HTTP connection. By default, the API is
  4. unauthenticated, it is important to understand that the CFSSL API
  5. server must be running in a trusted environment in this case.
  6. There are currently nine endpoints, each of which may be found under
  7. the path `/api/v1/cfssl/<endpoint>`. The documentation for each
  8. endpoint is found in the `doc/api` directory in the project source
  9. under the name `endpoint_<endpoint>`. These nine endpoints are:
  10. - authsign: authenticated signing endpoint
  11. - bundle: build certificate bundles
  12. - crl: generates a CRL out of the certificate DB
  13. - info: obtain information about the CA, including the CA
  14. certificate
  15. - init_ca: initialise a new certificate authority
  16. - newkey: generate a new private key and certificate signing
  17. request
  18. - newcert: generate a new private key and certificate
  19. - scan: scan servers to determine the quality of their TLS set up
  20. - scaninfo: list options for scanning
  21. - sign: sign a certificate
  22. RESPONSES
  23. Responses take the form of the new CloudFlare API response format:
  24. {
  25. "result": <some data>,
  26. "success": true,
  27. "errors": [],
  28. "messages": [],
  29. }
  30. Both the "messages" and "errors" fields have the same general format:
  31. a message or error has the form
  32. {
  33. "code:" 1234,
  34. "message": "Informative message."
  35. }
  36. If "success" is not "true", the result should be discarded, and the
  37. errors examined to determine what happened. The CFSSL error codes are
  38. documented in the `doc/errors.txt` file in the project source.