Skip to content

Instantly share code, notes, and snippets.

@warnergodfrey
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 https://bp.ato.gov.au/BpStatics/homepage.htm
  • Click Login
  • A dialog will apear asking you 'Do you want to trust the website “authentication.business.gov.au” 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 authentication.business.gov.au, in the drop-down menu select 'Run in Unsafe Mode'
  • A dialog will appear asking 'Are you sure you want to trust the website “authentication.business.gov.au” to run “Java” in unsafe mode
  • Click 'Trust'
  • Click 'Done' and exit Preferences
  • Open the ATO Business portal site again https://bp.ato.gov.au/BpStatics/homepage.htm
  • 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
@raymondbutcher
Copy link

Thank you.

@tbuckel
Copy link

tbuckel commented Jun 18, 2015

Cheers!

@vjpr
Copy link

vjpr commented Jul 28, 2015

Thanks!!!

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

@MrKistic
Copy link

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

@romanrev
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

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

@filmackay
Copy link

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

@thesettler
Copy link

Superstar... worked like a dream'

@davidtkearns
Copy link

Super helpful. Thank you so much

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

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

@thewebsitetherapist
Copy link

Worked for me thanks!

@jwaring
Copy link

jwaring commented Apr 26, 2016

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

@oden3000
Copy link

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

@poachednewt
Copy link

Fantastic, concise, complete and more importantly IT WORKS

@brianfoody
Copy link

Legend

@jessedc
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 authentication.business.gov.au, and un tick 'Run in Safe Mode'.

@DanielTillett
Copy link

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

@nikkibr
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

@benbve
Copy link

benbve commented Apr 25, 2017

Thanks. Was very helpful.

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

@Wincott
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