beremiz

WAMP: fix IDE/CLI client TLS support, fix runtime client connection, add minimal certificate manager.

- IDE/CLI now takes certificate from cert directory in project, using hostname.cert as file name
- runtime connects from reactor thread instead of main thread (non thread safe, leading to systematic reconnect at start)
- certificate manager only supports returning certificate path based on hostname for now
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# See COPYING file for copyrights details.
import os
def GetCertPath(project_path, CN):
# find Certificate from project
crtpath = os.path.join(project_path, 'cert', CN + '.crt')
if not os.path.exists(crtpath):
raise ValueError(
'Error: Cert %s is missing!\n' % crtpath)
return crtpath