Question: how are pki keys generated?
Answer: PKI works by assigning a user a pair of keys. These keys are generated by running a mathematical process against the user's certificate. ... The user would use their private key to encrypt the file. Once the file is encrypted, only the public key can decrypt it.