Make dialog usable for CSR creation for smartcard keys
(cherry picked from commit 8ea3b5bdb6e1bdcac3548cd10a590507e3f37bd6)