[PATCH 19/21] crypto: expand logic to cope with multiple certificate identities