It is perfectly legal: there is no requirement that employer's pay for employers to get certifications or recertifications necessary for the job. Employers can require employees to pay for and maintain their own certifications, the same way they can choose to only hire people in the first place who apply for work having already obtained for themselves required degrees or certifications or credentials.