Some fixes of ssl_crtd, not yet complete