Added saving of gpg public key

Change-Id: I6f5382a65de63b1a24e790a22812fcf0d246ecf2