We study the nonparametric maximum likelihood estimator (NPMLE) for a concave distribution function $F$ and its decreasing density $f$ based on right-censored data. Without the concavity constraint, the NPMLE of $F$ is the product-limit estimator proposed by Kaplan and Meier. If there is no censoring, the NPMLE of $f$, derived by Grenander, is the left derivative of the least concave majorant of the empirical distribution function, and its local and global behavior was investigated, respectively, by Prakasa Rao and Groeneboom. In this paper, we present a necessary and sufficient condition, a self-consistency equation and an analytic solution for the NPMLE, and we extend Prakasa Rao's result to the censored model.