methods for generating proxy certificates
unfortuntely M2Crypto is buggy so we'll have to use openssl commands