Moving config to function, update certificate documentation