To create an encrypted copy of a private key:
$ eyaml encrypt -l my_hiera_key_name -f path_to_secret.key
This command will produce two differently-formatted outputs suitable for copying straight into your Hiera file. Just choose the one you like the best, and copy/paste it into Hiera.