Set public key.