REST API: key/certificate endpoints.