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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.