Move Wifi passwords from one mac to another
I believe that in Mojave you cannot simply copy the keychain file. I found the best solution to be to sync the keychain in iCloud. This assumes that you have access to 
both machines.

Go to system preferences -> ICloud. Select Keychain.

Repeat this on the second machine.

Your keychains should now be transferred.