sm: Support generation of card-based ECDSA CSR.