The answer is no - the point is that finitely generated projective modules are locally free but not necessarily globally so.
For instance take a Dedekind domain $A$ which does not have unique factorization and consider a non-principal prime ideal $P$. Then $\tilde{P}_x \cong \mathcal{O}_x$ for any $x\in Spec A$ but it is not isomorphic to $A$.
This will occur for any scheme with non-trivial Picard group, in the sense that there will be line bundles (i.e. locally free sheaves of rank 1) which are not trivial.
Although ifEdit If you ask thatreally do want $Spec A$ be Hausdorff you probably do getthen off the resulttop of my head one can say the following. If - this is because a Hausdorff scheme$A$ is necessarilynoetherian then since it must be dimension 0 dimensionalit is artinian and so a product of artin local rings. The correct notion corresponding to HausdorffSo the only dense subset in the spectrum is separatedthe whole thing and allso any line bundle is trivial as it is a product of line bundles over local affine schemes are separated so adding this doesn't help.