Update cert_tool.cpp