How to provide MongoDB gpgkey from Nexus Repository Manager without update key to local raw repo


I’ve server that unable connect to Internet.

For MongoDB install/update, yum need to download gpgkey(

My temp solution is to create a local raw repo, and upload server-4.4.asc to it, and change /etc/yum.repos.d/mongodb-org-4.2.repo as:
gpgkey= >>

have better way to do it?
I don’t want manually update key to the local raw repo