For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > April 2007 > Encrypt/decrypt automatically with PHP PDF document via Client CA









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Encrypt/decrypt automatically with PHP PDF document via Client CA
Steph

2007-04-17, 3:57 am

Hi Everybody,

Does anybody know whether it is possible to encrypt AUTOMATICALLY in PHP
(at the server side) an Adobe PDF document (also stored at the server side)
by using a public key coming from a certificat of a client that wants to
retreive, decrypt (with his private key) and read the PDF document ?

I would like to distribute PDF documents to certified clients for which they
could only read the document on their PC that owns the certificat
(public/private keys) that has been used (the public key) to encrypt the
document at the
server side and to allow (with the private key) to decrypt it at the client
side .

Many thanks in advance for you help

Steph


C.

2007-04-18, 6:57 pm

On 16 Apr, 23:54, "Steph" <mcv...@hotmail.com> wrote:
>
> Does anybody know whether it is possible to encrypt AUTOMATICALLY in PHP
> (at the server side) an Adobe PDF document (also stored at the server side)
> by using a public key coming from a certificat of a client that wants to
> retreive, decrypt (with his private key) and read the PDF document ?
>


I don't believe there's any method to get the actual client
certificate into PHP from the HTTP session. If they upload the cert it
should be fairly simple as long as you know how its encapsulated.

C.

Steph

2007-04-18, 6:57 pm


"C." <colin.mckinnon@gmail.com> a écrit dans le message de news:
1176903719.454517.56690@b75g2000hsg.googlegroups.com...
> On 16 Apr, 23:54, "Steph" <mcv...@hotmail.com> wrote:
>
> I don't believe there's any method to get the actual client
> certificate into PHP from the HTTP session. If they upload the cert it
> should be fairly simple as long as you know how its encapsulated.
>
> C.
>

Thanks anyway !


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com