upgrade from jailbroken 3GS 3.1 to 3.1.2

hey guys,
i have my iphone 3GS jailbroken on firmware 3.1 and want to upgrade to 3.1.2 to jb again but itunes wont let me reastore it out of a ispw.
Do you have any clue how i could do it?

regards and thanks for ant answer!
lippl
did you download it from apple or a mirrored site , if it was a mirror site there might be an issue with it not being signed properly which is an issue with the new itunes .

Check this site out for good ISPW files : iClarified - iPhone - Where To Download iPhone Firmware Files From
It's b/c you have a 3G Apple isn't authorizing installs of firmwares other than 3.1.3 on the 3G
hm so is there a way to restore just to 3.1 again because i kinda messed up my phone and it wont go past the apple logo i tried everything..

Original thread: https://forums.imore.com/threads/upgrade-from-jailbroken-3gs-3-1-to-3-1-2.188587/