TITLE: The prime spectrum of a Dedekind Domain
QUESTION [24 upvotes]: Let $A$ be a Dedekind Domain, let $X = \operatorname{Spec}(A)$. Are all open sets in $X$ basic open sets? Thinking about the Zariski topology (in the classical sense) of a non-singular affine curve, if I had to guess, I would say "yes" but I can't think of a proof or counterexample. So far I have only been able to prove the result is true for PID's. 
Any help is much appreciated.
Cheers

REPLY [19 votes]: No, it is not true that for a Dedekind ring $A$ all open subsets of $X = \operatorname{Spec}(A)$ are principal. Here is a counter-example:
a) Let $\bar X$  be an elliptic curve  over $\mathbb C $ and  $P\in \bar X$ a non-torsion point  (this means that for all $n\geq 1 $ we have $n\cdot P\neq O$ in the abelian group $\bar X$, where $O$ is the zero element of $\bar X$ ).
Let $X=\bar X\setminus \lbrace O \rbrace$.
 The ring $A=\Gamma(X,\mathcal O) $ is Dedekind-because $X$ is affine and smooth of dimension one-and we have $X=\operatorname{Spec}(A)$.   
b)  I claim however  that $X_P= X\setminus \lbrace P \rbrace$ is a non-principal open subset of $X$.     
Indeed if we had $X_P=D(f)$ for some $f\in A$, the divisor of $f$ seen as a rational function on $\bar X$ would be of the form $div(f)=nP-nO\in \operatorname {Div}(\bar X)$.
But then, by Abel-Jacobi's theorem, we would have in the group $\bar X$ the relation $n\cdot P-n\cdot O=n\cdot P=O$, contradicting the  choice of $P$.  
Edit
While I was typing my answer, Bruno gave a perfect criterion for every open subset of $X = \operatorname{Spec}(A)$ to be principal: that $Cl(A)=Pic(X)$ be torsion.
So, for which Dedekind rings $A$ is that true?
My counter-example of course is one whereit is not true.
Actually for any elliptic curve $\bar X$, only denumerably many points of  the group $\bar X ( \mathbb C)$ are torsion and this implies that $Pic(X) \quad (X=\bar X\setminus \lbrace O \rbrace)$ has continuum many non-torsion elements.
But this is small beer.
Now comes the real surprise: Claborn has proved that given any abelian group $G$ whatsoever , there exists a Dedekind ring $A$ with $Cl(A)=G$.
So, take any abelian group $G$ with a non-torsion element and Claborn's theorem provides you with a Dedekind ring $A$ whose spectrum    $\operatorname{Spec}(A)$ has a non-principal open subset!