-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
two-factor apple id #3
Comments
I'll see if I can experiment with 2fa. These things might be obvious to you, but some ideas: I wonder if you are accidentally adding whitespace to your password when you hash it -- don't press enter at the end, just Ctrl-D until the hash appears. Also, ensure you aren't copying part of your password as the hash (on my system at least, the hash starts immediately after the last character of the password.) Hope this helps. |
yes i made sure to exactly typed the password and do a ctrl-d twice the app password looks like this example: znjj-aaac-rgtz-dvgd but it does not seem to work curl -i --data-binary @request-body -H 'Content-Type: text/x-xml-plist' --user-agent 'Servermgrd%20Plugin/6.0 CFNetwork/811.11 Darwin/16.7.0 (x86_64)' https://identity.apple.com/pushcert/caservice/new -H 'Accept: /' -H 'Accept-Language: en-us' | tee response HTTP/1.1 200 |
Strange. I have 2fa activated and didn’t had that problem. |
did you use a app password? or just your normal password? could it be the hasing might be because of a different distro?? |
Nope. Usual Apple password. I ran the tool on Linux. |
Is there whitespace in your Apple ID account name? Check
|
I’ll check it tonight when I’m home, thanks for thinking with me |
well it must have been the username as the password hash was ok and indeed, no 2FA needed, just the normal appleID password |
Glad you got it working. Thanks for the info on how 2FA works with this. I'll add it to the readme. |
Can't seem to get it working with either app password or regular password while 2FA is enabled. Were there any workarounds? |
Okay it appears that this library no longer properly generates the hash required. Instead I generated a hash using this approach: git clone https://github.com/freswa/dovecot-xaps-daemon.git
cd dovecot-xaps-daemon
go build ./cmd/xapsd/xapsd.go
./xapsd -pass |
Behind the scenes it does this: |
You can simply instead do this: echo -n "yourpasswordhere" | sha256sum To get the value |
I'm trying this today as my certs are about to expire
BUT
i'm getting messages my password is invalid.
so i thought, ofcourse....i have two factor auth enabled (can't be disabled)
so i made a special APP password and used that, but still i'm getting password is invalid messages.
anyone tried this? with 2fa>
The text was updated successfully, but these errors were encountered: