sm: Fix certificate creation with key on card.