Preselect certificate if there is only one search result
(cherry picked from commit c8473e9abf747ac4dccc20aae26eaf7a3fb85956)