Thank you all for help and engagement.
I've managed to get my update to Ventura.
I'm not 100% sure what's the fix but if anyone finds this post, here's probably what you want to do if you have error code like me `NSURLErrorDomain Code=-1012` by running `softwareupdate -l` in terminal:
- Restart your Mac
- Boot your Mac into Safe Mode
- Run `softwareupdate -l` in terminal to see if the error still persists
- If it still persists, run `softwareupdate --list-full-installers` in terminal and get your URL in `NSErrorFailingURLStringKey`, in my case it was https://swscan.apple.com
- Go to https://swscan.apple.com using Safari (Chrome and Arc display 404)
- Click lock icon in the address bar, click "Show certificate" and select your domain. Again in my case it was swscan.apple.com
- Copy selected domain's certificate by moving the big certificate icon over to desktop. In my case it was swdist.apple.com.cer file
- Open Keychain Access app
- Select "System" keychain from the left sidebar
- Double click on your certificate file from previous steps (swdist.apple.com.cer)
- Now kinda wait a little, restart your Mac, etc.
- After some time you should be able to see the update. In my case it was after I returned from my long lunch break, something like 2-3 hours.
❯ softwareupdate -l
Software Update Tool
Finding available software
Software Update found the following new or updated software:
* Label: Command Line Tools for Xcode-14.0
Title: Command Line Tools for Xcode, Version: 14.0, Size: 687109KiB, Recommended: YES,
* Label: Command Line Tools for Xcode-14.2
Title: Command Line Tools for Xcode, Version: 14.2, Size: 687573KiB, Recommended: YES,
* Label: macOS Monterey 12.6.3-21G419
Title: macOS Monterey 12.6.3, Version: 12.6.3, Size: 2177983K, Recommended: YES, Action: restart,
* Label: macOS Ventura 13.2.1-22D68
Title: macOS Ventura 13.2.1, Version: 13.2.1, Size: 5801191K, Recommended: YES, Action: restart,
Again, I'm still not sure whether this fixed my issue. In any case, I hope someone finds that useful :)
Thank you Old Toad, P. Phillips for your contribution!
Have a great day everyone.