Use user's public key if privKeyPath is empty.