emitting CA certificates implemented. Some env. variable names changed.