You can take professional qualifications offered by ICSA: The Governance Institute to become a company secretary.
You'll begin by doing the Chartered Secretaries Qualifying Scheme, which starts at foundation level. You can join at a more advanced level if you already have a relevant qualification, for example in law.