et-nik / gameap

Game Admin Panel (GameAP) is the opensource game servers control panel.
https://gameap.com
102 stars 23 forks source link

Fix SSL/TLS certificates generation bugs #7

Closed et-nik closed 5 years ago

et-nik commented 5 years ago

I can't find solution to generate server and client TLS certificates.

OpenSSL PHP module is old. Generated certificates is unfit to using by server. PHPSecLib library have a bugs. Generated certificates contain errors. X509 library generate certificates with errors.

Need to generate 3 keys and certificates via PHP: ca, server (sign ca), client (sign ca). Similar to OpenSSL cli commands: https://github.com/gameap/GDaemon2#creating-certificates

et-nik commented 5 years ago

Fixed X509 library. https://github.com/et-nik/x509