Setting up private registry without a domain name

Hi, I’m currently trying to set up my own registry server without a domain name. I have two cloud VMs one of them is registry and the other one is the user which will be pulling the images from registry. I have followed along tutorial but even after creating the .crt and .key files and place them in the both machines, it won’t succeed. The registry and user VMs both throws “x509: cannot validate certificate for because it doesn’t contain any IP SANs” error. The same error occurs when pushing the image on the registry VM and when pulling the image from the user VM. Isn’t it possible to set up registry without a domain name and with using only the ip adress of the VM?