fixing regeneration of certs. only tested in standalone