Hi flantascience,
It’s not your private key that WP is asking for, it’s the private key of the user account on the server which manages your WP install.
This link from Digital Ocean explains what you need to do:
https://www.digitalocean.com/community/tutorials/how-to-configure-secure-updates-and-installations-in-wordpress-on-ubuntu
Cheers,
Lee