Sample code for 30+ languages & platforms
Perl

Certificate Signing Request (CSR) Examples for Chilkat2 Perl