doing pki encrypt