hackalive Posted July 14, 2013 Share Posted July 14, 2013 Hi guys, So rather than always having to enter in a username and password, I want my intranet to accept X.509 certs generated using http://phpseclib.sourceforge.net/x509/examples.html#casignedv Now I do not want to use Apache to handle to login (I know this is possible). Instead I want a pure PHP solution (with a tad of MySQL maybe). So essentially, I am trying to figure out how I can get PHP to check that the certificate is a real one and not faked by someone else. How could I do this? Would I keep the Private Key on my server and then do a decrypt or something with the public key from the Cert? I am grasping at straws here as I am not so sure what to do or how to do it? Any help is much appreciated, also if you need any more info let me know. Quote Link to comment Share on other sites More sharing options...
hackalive Posted July 14, 2013 Author Share Posted July 14, 2013 After some research I have found that I can sign my own certs as a CA (using a self made cert in phpseclib). My question now is, checking if that cert is valid or not using phpseclib, is that good enough? Is it easy for someone to figure out/spoof/fake my cert that signs their certs? Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.