Skip to content

Getting SEGA's RSA Keys

Alam Arias edited this page Aug 6, 2014 · 12 revisions

SEGA's keys

When connecting to the PSO2 servers, PSO2 normally encrypts it's packets with SEGA's RSA public key. To use a proxy, you provide your own public key and inject it into the client so the proxy can decrypt it. In order for the proxy to re-encrypt the packets when it sends it on to SEGA's server, the proxy needs one of the 4 keys used to encrypt packets installed on it.

Dumping SEGA's RSA pubkeys from the Client

In order to do this, you have to have the latest version of PSO2 Installed.

You can use the provided RSAKeyDumper.dll provided in the tools folder, to use it, simply rename it to ddraw.dll and start PSO2.

After you start the game, if everything works right, it should create 4 files with the name SEGAKey#.blob, where # is between 0 and 3. Simply upload SEGAKey0.blob to your proxy server in the keys folder, use the command described in the README.md to convert it to a .pem and rename it to just SEGAKey.pem and you should be good!

Note to PSO2Tweaker Users

To use this with PSO2Tweaker, enable the Item Translation patch and open up or create a file named translation.cfg in the pso2_bin folder, add two lines

PublicKeyDump:1
PublicKeyPath:SEGAKey.blob

Simply upload SEGAKey.blob to your proxy server in the keys folder, use the command described in the README.md to convert it to a .pem and rename it to just SEGAKey.pem and you should be good!

Clone this wiki locally