Jump to content

X.509 Login


hackalive

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/280143-x509-login/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/280143-x509-login/#findComment-1440681
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.