Implemented CA certificate retrieval from server
Implemented certificate renewal
Fixed time-related inconsistencies