Finished and optimized the implementation of default cert profile