CONN-148: Added certificate signing capability, code cleanup