SDK Java - Nodejs

im using Javascript for backend to integrate with ZATCA on Development and i wanna ask about the ways to generate the CSR on the server on development? is there is a ready package for it ? or SDK? and how i can verify it ?

also can you please write the full steps for it ?
and thanks for your support