I have just found my 4 times great grandfather as Master Mariner on board a few ships.

His name was Thomas Richards, born 1820/1821 in Porthleven/Helston, Cornwall.
His Masters Cert number was: 52647
I found him in the 1861 census onboard the ship Sir Edward, as Master.
I also found him as Master to the following ships between 1864 - 1877 on various trips:
Emily
Florence
Prioress
In the 1881 census he seems to have retired since he is listed as a grocer keeper at Bridge Street, Resolven, Neath.
I would really like to find records for when he became a certified Master Mariner. I assume these records would be kept at the archives in Glamorgan.
Thanks in advance.