public key generation

how do i generate my public key and how to see them?