changing in generating certificates
writing log into three files