I want to create wireguard private and public keys using solely php as the system i am running the script on is old ( 12.04 ) , for many reasons cannot upgrade it so i am not able to use wireguard utilities like wg genkey.
is there a way for that ? if not php maybe via bash.