add endpoint for upload certificate