Reintroduced warning handling, and added it for all kinds of certificates. TODO: warning handling for GPG