Jump to content


Photo

X.509 Login


  • Please log in to reply
1 reply to this topic

#1 hackalive

hackalive

    Advanced Member

  • Members
  • PipPipPip
  • 657 posts

Posted 14 July 2013 - 06:50 AM

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.sou....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.



#2 hackalive

hackalive

    Advanced Member

  • Members
  • PipPipPip
  • 657 posts

Posted 14 July 2013 - 08:53 AM

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






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com