I have one mac which I developed my app and regulary upload to the App Store, recently I had to format and re-install all my apps and I couldn't backup my certificates, now IOS distribution certificate shows missing private key, I generated a new certificate and a new distribution profile and installed them but I couldn't solve the problem, I also tried to upload using Application Loader (version 3.7) but it keeps giving me Apple ID password is incorrect although it is pretty much correct, I tried generating a one time password and use it but it gave me the same error (not correct).
Can someone please write in clear and simple steps what should I do to fix the issue in Xcode (version 9.2) or how to login to Application Loader (or fixing both).
Thank you.