Sample code for 30+ languages & platforms
PHP

Certificate Signing Request (CSR) Examples for Chilkat2 PHP