Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


can we use PGP with PHP?



can we use PGP with PHP?..

Answer / rakesh kumar nautiyal

We would recomend using GnUPG not PGP, GnUPG can be used for
comercial sites without a license.

You will need shell access, i.e. telnet or SSH. SSH is more
secure. Also a linux machine and a copy of PGP installed on
your machine. You will also need to generate a key pair,
this consists of a public and private key. The public key is
uploaded to the server the private key is kept on your
machine. See the PGP help file for more information.

GnUPG must be installed, (Check with your server admin)

Access the shell as your user then do the following command :-
mkdir .gnupg
chmod 777 .gnupg
gpg --gen-key

use a dummy name and when it gets to the bit where it
generates the keys make sure the machine is doing I/O to get
the entropy.. ie. telnet in again and do a du / or something
its best to have this ready and just hit enter as you finish
the key creation

This creates a dummy key pair, this is not used but is needed.

This takes anything from a few seconds to a few minutes
depending on the speed of the server.

as the user, just ftp the ascii public key to the server.
This will be called something.asc. Upload it making sure its
ASCII not binary (See your FTP software help file)

then type ..

gpg --import file.asc

Then ..

gpg --list-keys

get the name of the new key that was uploaded, this will be
something like :-
pub 1024D/FA46F142 2000-11-03 Darren Casey

The next part is to set the permissions for the .gnupg
directory so the webserver can access the files. Type the
following commands :-

cd .gnupg
chmod 666 trustdb.gpg
chmod 604 secring.gpg
chmod 604 random_seed
chmod 644 pubring.gpg

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More PHP Interview Questions

What is php's mysqli extension?

0 Answers  


How many php functions are there?

0 Answers  


How can we extract string ‘abc.com ‘ from a string info@abc.com" target="_blank">http://info@abc.com using regular expression of php?

6 Answers  


Which is useful for method overloading?

0 Answers  


What are the functions to be used to get the image's properties (size, width and height)?

0 Answers  


What is meant by ‘passing the variable by value and reference' in php?

0 Answers  


Explain how to run the interactive php shell from the command line interface?

0 Answers  


What is the role of php.ini file?

0 Answers  


Why php language is used?

0 Answers  


hello.. i am b.tech 4th year student. i am confused that i should learning php or java. I have some knowledge of java and developed project in java, but i want to develop my career in php. So plz suggest me , i should go with php or java.

5 Answers  


if i give Limit for mysql query through php command line script like this for ex. $limit=500; $total_items = 1500; for($start=0;$start<$total_items;){ $command = "/usr/bin/php -q /home/sitename/public_html/admin/feedmanager/test.php feedid ".$_GET['feedid']." start ".$start." end ".$limit ; $start = $start+$limit; $command_result = system($command); } so it's execute command for 3 times so it give limit to sql query but if i have 27000 data so it takes long time? so my question is that is that any way from php command line script that i can use for collect all the data at once?

0 Answers  


What is $_session in php?

0 Answers  


Categories