Verified to be working with:
- 2021.3.23 OSX
- 2022.2.16 Win
不要再去用这个方法破解,没有用.
- openssl req -config openssl.conf -newkey rsa:2048 -keyout private.key -out request.csr
- openssl x509 -req -days 365 -in request.csr -signkey private.key -out certificate.crt
- openssl x509 -in certificate.crt -outform der -out certificate.der
- ls -l certificate.der
- openssl x509 -in certificate.crt -pubkey -noout > mypub.key
Process:
- Generate keypair and cert with provided
openssl.conf. Cert size in DER format must be 1267 bytes (这里应该是unicode编码,一个字母占两个字节) - Replace cert in
Unity.Licensing.EntitlementResolver.dllusing HEX editor orpatchbinary - Modify
license.xmltemplate to your needs - Generate
Unity_lic.ulfsigned with private key usingsignbinary ts.gois an implementation ofTimeStampencoder/decoder just in case.
Usage:
patch /path/to/Unity.Licensing.EntitlementResolver.dllsigncp Unity_lic.ulf /path/to/license/dir
Block domains in /etc/hosts
# unity
127.0.0.1 license.unity3d.com
127.0.0.1 core.cloud.unity3d.com
127.0.0.1 activation.unity3d.com
127.0.0.1 cdp.cloud.unity3d.com
# this one seems to be optional
# blocking won't allow signing into Unity ID
127.0.0.1 api.unity.com