Ok guys, I've been reading on how to set SSL enabled server. I found the easiest way is to use Uniform Server package as i have a simple plugin to start SSL mode
I'll write step by step guide for those who came late and want to test on their keys
(BTW I tried it with fake unlock code, ra3game.dat crashes)
EDIT: if you don't know what is your unlock code : make new html file and write in it
Code:
<form method=post action="https://proxy.novafusion.ea.com/drm/license?requestcode=7JXEX-67WFY-J6S4Y-YPUKA-6NZF2-QNVZH-48CP9-XTQSA-MM43&serial=XXXXXXXXXXX">
<input type='submit' value='submit'>
</form>
Replace XXXXXXXXXX with your serial number without dashes
Do this before editing Hosts file.. if u edited the file already, remove the line you added in hosts file then restart your browser , then open the html file above and press submit
Step 1 : Editing Host File
-Locate hosts file C:\Windows\System32\Drivers\etc\hosts and remove the read-only attribute if exists
-Edit the file and add the following line
Code:
127.0.0.1 proxy.novafusion.ea.com
Step 2: Installing HTTP server
- Download UniformServer from
SourceForge.net: Files
- Install, then run C:\Program Files\Uniform Server\Server_start.bat
- Test your server by opening
http://proxy.novafusion.ea.com
- Stop the server by running C:\Program Files\Uniform Server\stop.bat
Step 3: Configuring SSL
- Make sure server is stopped
- Download this simple plugin :
And put it on C:\Program Files\Uniform Server.
Run the file and extract at the same folder (Overwrite all files)
- Edit file C:\Program Files\Uniform Server\udrive\usr\local\apache2\conf\ssl.conf
- there is line: ServerName XXXXXX
replace XXXXX by proxy.novafusion.ea.com
- Save the file
Step 4: Installing PHP script and configuring mod_rewrite
- Start the server (Start_server.bat)
- You will find new drive in your computer (like USB thmub driver, most likely Let's assume it's W: )
- go to W:\www\site3\ , and make folder drm
- make new file in drm and name checker.php and put in it darkfile's code:
Code:
<?
// XML Output is Generated
header('Content-Type: text/xml');
// XML HEADER
echo '<?xml version="1.0"?>';
// <Unlock response> is created
echo '<Unlock_response version="1">';
echo '<Status_number>0</Status_number>';
echo '<Status_text/>';
// You need to fill this with the Unlock Code that you got with The HTML code
echo '<Unlock_code>YOUR UNLOCK CODES GOES HERE</Unlock_code>';
echo '</Unlock_response>';
?>
- Don't forget to put your unlock code in the file
- Now make another file in the same folder and name it .htaccess
- Write in the file :
Code:
Options FollowSymLinks
RewriteEngine On
RewriteRule ^license(.*)$ checker.php$1
UPDATE:
There's something I forgot to say
go to C:\Program Files\Uniform Server\udrive\usr\local\apache2\conf\ssl.conf
search for something looks like
Code:
<Directory "/www/site3">
...
..
...
</Directory>
replace it with
Code:
<Directory "/www/site3">
AuthName "Uniform Server - Unicenter Demo Server Access"
</Directory>
Step 5: Tests
- open
https://proxy.novafusion.ea.com/drm...-48CP9-XTQSA-MM43&serial=F6XPSVQKE9LE92D8HPK8
- you may get warning from your browser, because we're not using signed certificate, ignore this warning (or add exception in Firefox 3), in general cases you should not ignore this kind of warning but you're actually accessing your own server

- after passing the warning, you will get XML result with your unlock code that you wrote in checker.php
- if you get message like : GET method is not supported by this browser,, then something is wrong(most likely is the hosts file) because u still actually contacting the real server (note : you should close your server and redo the test if u sure hosts file is correct)
- Now if you get XML result then you are ready to test RA3, run the game and tell us if it works
- If it worked then, all we have to do is to tell people to use the key and I'll set up public http server so people don't have to do all these steps (except for step 1) and I'll use the unlock code of that key in the HTTP server
Regards and sorry for the long post
