http://bugs.winehq.org/show_bug.cgi?id=17842
cbxbiker61@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cbxbiker61@gmail.com
--- Comment #6 from cbxbiker61@gmail.com 2011-02-14 04:50:51 CST --- Yippee skippee, I figured out how to get popcap games to connect to the registration server!
Turns out that it's not really a bug in wine, more of a "feature".
Wine under Linux uses OpenSsl for site certifications. OpenSsl will return an error for sites that it can't validate credentials for. It determines this from the certs that are located in /etc/ssl/certs.
popcap.com is certified through DigiCert and therefore requires DigiCert's certifications to be installed in /etc/ssl/certs.
The easy way to get the DigiCert certs installed in Linux is to open Firefox (Firefox has built-in certs), go to Edit/Preferences, then select the Advanced/Encryption tabs, then "View Certificates" scroll down to DigiCert and one by one select them and select the "Export" button. Make sure X.509 Certificate is selected as the target type and save them (/tmp might be an appropriate location). Now rename each of the certs with a .pem extension and install them into /etc/ssl/certs. Now you should be able to connect to the Popcap registration server and enter the registration code, it should validate and unlock your game.
Had to do a bit of digging through the Wine source code to figure out what was going on. Isn't open source great?! You can fix your own problems (and others too).
BTW, It's probably a good idea to install them .pem's in http://www.verisign.com/support/roots.zip to your /etc/ssl/certs too. It'll probably keep you from encountering other validation errors under Wine running other programs. That'll probably also fix some wget errors (although you can override wget's problems with --no-check-certificate).