Whenever I try to connect to app store I got this error:
I tried everything I could find in internet, but always the same problem.
OSX: Yosemite Model: MBPr 15 mid-2014
Check the date and time / timezone. If it's incorrect you won't be able to connect to the App Store (or much else for that matter.)
Try it with a different internet connection.