Public private key handling