Renewed PKI, improved certificates management, minor code changes