Create a new address on core using the command
bitcoin-cli getnewaddress
Get the PubKey associated with the new address with the command
getaddressinfo "new_address"