You don't write them, you upload them to the server for review then after it gets approved you get the public key :)