html form - cgi - php-openssl problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kimchi
Forum Newbie
Posts: 2
Joined: Mon Feb 28, 2005 9:17 pm

html form - cgi - php-openssl problem

Post by kimchi »

Good day!

i'm working around a form whose action is a .cgi file which i cannot edit

<form action="file.cgi" .. >

from the form i need to get info needed for the certificate like the ones indicated in an openssl.cnf file (that's what certficates need right?)

but i need to add some php-openssl functionalities (create a certificate) that would access a pem file and use it to sign the certificate trying to create. my problem is that permission to access that file is denied.
i tried the chmod ("/dir/file.pem", 0766) but it doesnt sem to work.

also, can HMTL form's onClick call/use a php file? maybe i can just isolate all the php-openssl code the have my form back as a .html file and just call this php-openssl code...

In a sense this one form has to do two different things - use the cgi file and do that php code. I'm really new in all these and I'm kind of mixed up trying stuff from tutorials. T_T i hope someone can help me...

thanks very much!
Post Reply