We construct and justify rigorously the complete asymptotic expansion for the electric resistance of a three-dimensional resistance connected by two small contacts of arbitrary shape. We obtain explicit formulae for the first two terms in the asymptotics generalizing the classical Holm formula of one-term asymptotics for two small round contacts of same radius.