camlistored: missing error checks in self-signed cert writing

Change-Id: I19629179b580859fa670fa22f4ca319280728d2a