I reinstalled the license server as a docker container this time and it all worked. The VM received a 3 month licence. I am not sure what is going on in lxc container, may be something to do with openssl or other libraries. The Failed to verify signature on lease response error is a cryptographic and configuration problem and so is Failed to acquire license from 10.10.1.135.