You need a socket with a almost closed end. I ran into the same issue when doing my brakes a few months back. I had SpdDemon13 on tap to guide me to the light though.
You need:
10mm Flare nut wrench
Check here, get some sleep and try again in the morning. Took me some time but all in all it wasnt that had and it was my first brake job.