.functions: Improve `getcertnames`