ValueError('invalid key',) TypeError("can't convert 'NoneType' object to str implicitly",) ValueError('invalid cert',)