Add a UI utility function with which to wrap pem_callback_cb in a UI_METHOD