Tweaking token registration code to hit proper cert environment