Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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

trungie commented Feb 28, 2014

This saved me. Thanks.

Ian4101 commented Apr 1, 2014

Yep - worked for me - thanks!

Yes, thank you.

How I hate the AusKey registration/install process....

Rob2037 commented Apr 25, 2014

This is a great solution


griv commented May 2, 2014


ibcom commented May 11, 2014


Phew - thanks. I had to allow both and (for the initial AusKey install) to run in unsafe mode.

What a crappy setup: "Yes, by all means have access to my filesystem". Yuck.

Thanks. Worked for me.

kouky commented Oct 8, 2014

This gist has been saving my ass all year 👍

shaynem commented Oct 29, 2014

cheers, every three months I come across a different problem and this has been one of them!


Thanks mate

Nice one.

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...

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

DarylWM commented May 10, 2015

Thanks Warner.

jverban commented May 19, 2015


Thank you.

tbuckel commented Jun 18, 2015


vjpr commented Jul 28, 2015


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.

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

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

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.

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

Superstar... worked like a dream'

Super helpful. Thank you so much

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.

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.

Worked for me thanks!

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.

oden65 commented Apr 27, 2016

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

Fantastic, concise, complete and more importantly IT WORKS


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'.

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

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

benbve commented Apr 25, 2017

Thanks. Was very helpful.

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.

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