[PATCH 5.12 158/178] cfg80211: make certificate generation more robust