Write public key when injecting keys.