Skip to content

Instantly share code, notes, and snippets.

Last active September 21, 2018 03:20
Show Gist options
  • Save warnergodfrey/7512051 to your computer and use it in GitHub Desktop.
Save warnergodfrey/7512051 to your computer and use it in GitHub Desktop.
Access the ATO Business Portal using AusKey Mac OS X Mountain Lion
  • Install the latest JRE from Oracle
  • In the Java Control Panel, go to the Security tab and make sure 'Enable Java Content' is checked
  • Open Safari
  • Go to the ATO Business portal site
  • Click Login
  • A dialog will apear asking you 'Do you want to trust the website “” to use the “Java” plug-in?'
  • Click 'Trust'
  • Now you will be asked 'Do you want to run this application?'
  • Click 'Run'
  • Another dialog will appear asking you to 'Allow access to the following application from this website?'
  • Click 'Allow'
  • You will now get the following error message:
An error has occurred with a result code of 4402.
[message=Read-only files cannot be used as keystores: /Users/warner/Library/Application Support/AUSkey/keystore.xml, errorCode=4402]
  • NOTE: Changing the file permissions on the keystore will not help, the ATO requires access to the file system!
  • To allow file system access, select Safari -> Prefereces... from the menu
  • Go to the Security tab and click 'Manage Website Settings...'
  • On the left-hand menu select Java
  • In the right-hand pane you will see, in the drop-down menu select 'Run in Unsafe Mode'
  • A dialog will appear asking 'Are you sure you want to trust the website “” to run “Java” in unsafe mode
  • Click 'Trust'
  • Click 'Done' and exit Preferences
  • Open the ATO Business portal site again
  • Now you will be asked 'Do you want to run this application?'
  • Click 'Run'
  • Another dialog will appear asking you to 'Allow access to the following application from this website?'
  • Click 'Allow'
  • You should now be able to select your AusKey and login to the Business Portal
Copy link


Copy link

Thanks mate

Copy link

Nice one.

Copy link

FFS - thank you - and how the hell did this system ever make production. If this were a commercial venture, it would be bankrupt requiring users to jump through these hoops...

Copy link

Thanks very much, just migrated to Mac and this solved my issue.

Copy link

DarylWM commented May 10, 2015

Thanks Warner.

Copy link

NVerban commented May 19, 2015


Copy link

Thank you.

Copy link

tbuckel commented Jun 18, 2015


Copy link

vjpr commented Jul 28, 2015


Copy link

This didn't work. I've tried to migrate my files back to OSX from my windows Vmware as OSX has been broken for a while. It says I don't have a login after I pass that read only error.

Copy link

Bloody ripper, thanks. ATO be damned for this schemozzle. Unsafe mode saved me on my new Yosemite install.

Copy link

Awesome gist, thanks heaps for that! Helped me immensely when for some reason the Firefox browser stopped working for this site, and I have now switched over finally to Safari

Copy link

ipixel commented Sep 22, 2015

F*cking outstanding. Saved me after finding out the ECI Client was no longer supported (and thus hadn't 'actually' received our last activity statement - yet got a receipt ID), but was never notified.

Copy link

ATO - get with the plan. Chrome and Java no longer.. time to move on!

Copy link

Superstar... worked like a dream'

Copy link

Super helpful. Thank you so much

Copy link

nqdba commented Mar 23, 2016

Great, some minor issue with new yosemite install - could only select 'always allow' in 'Manage Website Settings' (which is under Plugin Settings' in yosemite. Also had to rename the preferences.xml to preferences.old in the Auskey directory to stop the 4402 error. Thanks for the help.

Copy link

Looks like everybody landed here for the solution! Good on you and thanks for sharing.

I do wonder, though. Am I the only one bothered to run java in unsafe mode? I don't want java to have access to my file system, let alone the government.

Copy link

Worked for me thanks!

Copy link

jwaring commented Apr 26, 2016

Thanks Godfrey. We also had to uninstall the previously installed AUSkey (open ~/Library/Application Support/AUSKey/Uninstaller/ The credentials were preserved.

Copy link

nevros commented Apr 27, 2016

Well done :+1 showed as #1 hit on google for a good reason :)

Copy link

Fantastic, concise, complete and more importantly IT WORKS

Copy link


Copy link

jessedc commented Oct 18, 2016

If you're using Safari 10 (most recent version as of posting) you will need to hold down the option (alt) key when clicking the drop-down menu on the right hand side of, and un tick 'Run in Safe Mode'.

Copy link

jessedc thanks for the tip - this was driving me crazy! It still is a security nightmare though.

Copy link

nikkibr commented Jan 9, 2017

Thank you - every quarter it takes longer to log in to portal than it does to do my GST! followed all your tips but now i am getting error message An error has occurred with a result code of 4303 instead of 4402. I have reinstalled java

Copy link

benbve commented Apr 25, 2017

Thanks. Was very helpful.

Copy link

This guide still works for Safari 11, but check that you don’t have an ad-blocker running. I ran into the problem that while I could log in to the ATO site I could actually see my activity statement. Once I turn off my ad-blocker it worked.

The tricks required to get the ATO site to work are extraordinary. Like nikkibr it takes me longer to remember how to log in than actually fill in the form.

Copy link

Wincott commented Sep 21, 2018

Safari 12 and Firefox 62.0 for the Mac no longer support Java plugins. Therefore you cannot do the 'Run in Safe Mode' crap anymore. I had to download and install an older version of Firefox 52.9.0, immediately switch off auto update, just so I can do business with our beloved ATO. This is Sept 2018. Pathetic ATO! I understand Windows users cannot use the Edge browser either. Nor is Chrome / Chromium supporting Java. WTF! There is a reason modern browsers are no longer supporting Java. Get with the program ATO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment