widop / google-analytics

Google certificate-based authentication in server-to-server interactions with google analytics for PHP 5.3+
MIT License
27 stars 20 forks source link

p12 private key file is password protected #17

Open ltarasiewicz opened 9 years ago

ltarasiewicz commented 9 years ago

Hello,

I've noticed that there seems to be no handling of p12 file passwords. As of late p12 private keys are password protected. How could I easily submit a file password with widop/google-analytics?

Thanks a lot!

jalso commented 6 years ago

the password 'notasecret' is hardcoded in Client.php:

if (!openssl_pkcs12_read($certificate, $certificates, 'notasecret')) { throw GoogleAnalyticsException::invalidPKCS12File(); }