generate private and public keys, sign files