add support for uploading certificate