Two partial answers above. For a complete solution see:
https://github.com/David-Enst/WeeWX-BCRobotics/blob/master/Weather%20Station%20Raspberry%20Pi%20Security%20Setup%20for%20MyWX%20App.pdf