Choad
October 10th, 2009, 03:58 PM
i am a bit bewildered by the world of encryption and was wondering if anyone could help me. i am making a poker game for my final project at uni and it needs to authenticate the server before anything to stop a fake server stealing passwords.
from what i have gathered, using SSL certificates is the way to go. i have created the private key and certificate file using
openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem
and i have created the public key using
openssl rsa -in cert.pem -pubout
writing RSA key
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCzQB/LgWCCoyqk2xTd5i9SxfBI
V0ioN2M+uSIb7gOpi+EnGkLizbwXDZQxY0eihKMe61EgO0SVPy mZq3k/csNcXrKU
HzSnGtJJDYL3FZVjEP6YjnmgedjvEyOB5iPazfQii50NEURuPk e3h1tHqJ1XRvHm
ndZrmfp+I2G7v9GDzQIDAQAB
-----END PUBLIC KEY-----
but now i am a bit lost. could anyone who knows what they're doing tell me if i am on the right track, and where i need to go from here? thanks.
from what i have gathered, using SSL certificates is the way to go. i have created the private key and certificate file using
openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem
and i have created the public key using
openssl rsa -in cert.pem -pubout
writing RSA key
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCzQB/LgWCCoyqk2xTd5i9SxfBI
V0ioN2M+uSIb7gOpi+EnGkLizbwXDZQxY0eihKMe61EgO0SVPy mZq3k/csNcXrKU
HzSnGtJJDYL3FZVjEP6YjnmgedjvEyOB5iPazfQii50NEURuPk e3h1tHqJ1XRvHm
ndZrmfp+I2G7v9GDzQIDAQAB
-----END PUBLIC KEY-----
but now i am a bit lost. could anyone who knows what they're doing tell me if i am on the right track, and where i need to go from here? thanks.