Windows
- On your Windows laptop, open PowerShell as administrator: press Start, type
PowerShell, right-click Windows PowerShell, choose Run as administrator, and accept the prompt. - Paste this line and press Enter. It downloads the enrolment script from the HS VPN page and runs it:
irm https://home.hsinc.ai/client/Enroll-HsVpn.ps1 -OutFile $env:TEMP\Enroll-HsVpn.ps1; powershell -ExecutionPolicy Bypass -File $env:TEMP\Enroll-HsVpn.ps1 -Device laptop -Store Machine -ConfigureVpn
Use another short name instead of
laptopfor a second device, e.g.desktop. - A browser opens https://home.hsinc.ai. Choose Sign in with hsinc.ai and sign in with your hsinc.ai account.
- The page shows Your enrolment code. Choose Copy code, go back to PowerShell, paste it and press Enter. The code works once, for 10 minutes; reload the page for a new one.
- The script says
Installed <you>-laptop for computer <your PC name>and that HS VPN now logs in with it. If Windows asks whether to trust HS VPN Client CA, choose Yes. - Connect from Settings > Network & internet > VPN > HS VPN > Connect. It does not ask for a password.
If the script says your PC's name can't be used (an underscore or a space, e.g. Abri_Lenovo), rename the PC with letters, digits and hyphens only, restart, and run the command again.
Mac with the script
- Open Terminal (press Command and Space, type
Terminal, press Return). - Paste this line and press Return:
curl -fsSL https://home.hsinc.ai/client/enroll-hsvpn-mac.sh -o /tmp/enroll-hsvpn-mac.sh && bash /tmp/enroll-hsvpn-mac.sh
The certificate is named
<you>-mac; add--device <name>(lowercase letters and digits) for another name. - A browser opens https://home.hsinc.ai. Sign in with your hsinc.ai account, choose Copy code, paste it into Terminal and press Return.
- macOS says Profile downloaded. Open System Settings > Privacy & Security > Profiles (macOS 15 and later: System Settings > General > Device Management), choose HS VPN, then Install, and enter your Mac password. macOS calls it unverified because the profile isn't signed; that is expected. Approve it within 8 minutes, then press Return in Terminal. The script then deletes its copy of the profile.
- Connect from System Settings > VPN > HS VPN. It does not ask for a password.
If the script says your Mac's name can't be used, it prints the fix, e.g. sudo scutil --set LocalHostName Istvans-MacBook-Pro (or System Settings > General > Sharing > Local hostname > Edit). Then run the command again.
What it does. The script makes an RSA key on your Mac that never leaves it, and sends only a certificate request with your Mac's local hostname. It packs the certificate and key into a profile, locked with a random passphrase that is written into the profile so macOS installs it without asking, and deletes that file once you have approved it.
Renewing. The certificate lasts 30 days: run the same command again before then. The new profile replaces the old.
Removing. bash /tmp/enroll-hsvpn-mac.sh --uninstall (download it again first if it's gone), or System Settings > Privacy & Security > Profiles > HS VPN > the minus button. Either removes the certificate and the VPN together.
Mac without the install step
Your key has to be made on your Mac, so the enrolment page can't hand you a finished profile. The script can make the profile and stop, so you install it yourself:
- In Terminal, run:
curl -fsSL https://home.hsinc.ai/client/enroll-hsvpn-mac.sh -o /tmp/enroll-hsvpn-mac.sh && bash /tmp/enroll-hsvpn-mac.sh --dry-run --out ~/HS-VPN.mobileconfig
- Sign in at https://home.hsinc.ai when it asks, and paste the code. It writes
HS-VPN.mobileconfigin your home folder and installs nothing. - Double-click that file. macOS says Profile downloaded.
- Open System Settings > Privacy & Security > Profiles (macOS 15 and later: General > Device Management), choose HS VPN, then Install, and enter your Mac password.
- Delete
HS-VPN.mobileconfigand empty the Bin: it holds your key and the passphrase that opens it. - Check System Settings > VPN shows HS VPN, and switch it on to connect.
Mac settings for a hand-made IKEv2 connection
If you import your certificate some other way, these are the values the profile uses.
| Setting | Value |
|---|---|
| Type | IKEv2 |
| Server | home.hsinc.ai (always the name, never an IP address) |
| Remote ID | home.hsinc.ai |
| Local ID | your Mac's local hostname, which is the name in your certificate (scutil --get LocalHostName) |
| Authentication | Certificate: your <you>-<device> identity from HS VPN Client CA; no username or password |
| IKE proposal | AES-256, SHA2-256, Diffie-Hellman group 14, lifetime 480 minutes (the server also accepts AES-256/SHA2-384, AES-128/SHA2-256 and groups 19 and 20) |
| Child SA | AES-256, SHA2-256, lifetime 480 minutes, no PFS |
| Dead peer detection | on (medium) |
| DNS | 192.168.170.2, 192.168.171.2; search and match domain hls.local |
| Routes | only the estate, 192.168.0.0/16; your internet traffic stays on your own connection |
iPhone and iPad can use the same kind of profile later; there is no script for them yet.
Checking it works
- Mac:
scutil --nc listshows HS VPN as Connected; Windows: Settings > VPN shows Connected. You get an address172.16.129.x. dscacheutil -q host -a name couchdb.hls.local(Mac) orResolve-DnsName couchdb.hls.local(Windows) returns an estate address.curl -k https://console.hls.localanswers, and normal websites still work from your own connection.
If something goes wrong, send Zane the time and the exact message; the enrolment service records every attempt.