Here is an example of doing it on Fedora.
- Go to https://access.redhat.com/management/systems/
- Click on your system which has subscription attached.
- Download the subscription certificate to your non-RHEL host(laptop).
- Extract all files and then only place the *.pem file to e.g. ${ENT_DIR}/${ID}.pem
- more info here https://www.openshift.com/blog/how-to-use-entitled-image-builds-to-build-drivercontainers-with-ubi-on-openshift
laptop# cat /etc/redhat-release