The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GnuPG and PHP

Discussion in 'General Discussion' started by Rikki, Jun 9, 2003.

  1. Rikki

    Rikki Member

    Joined:
    Mar 10, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I've actually managed to get this thing to work with PHP :)

    If its still of interest to people I can put together a little primer.

    R.

    cPanel.net Support Ticket Number:
     
  2. jcsolutions

    jcsolutions Well-Known Member

    Joined:
    Nov 4, 2002
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    If you got GnuPG working with forms, I'd love to hear what you have to say. This is something that I can't get working server-wide, only for individual accounts. Thankfully not many of my users need this feature. :p

    cPanel.net Support Ticket Number:
     
  3. Rikki

    Rikki Member

    Joined:
    Mar 10, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    It was only one account I needed to set it up on so managed that.

    Took long enough though to even get that sorted out! Looks like 1.0.6 doesnt like .gpg files from any other version (and 1.0.6 is the May 2001 release!)

    cPanel.net Support Ticket Number:
     
  4. ice53ltd

    ice53ltd Member

    Joined:
    Sep 12, 2002
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
  5. mbryant

    mbryant Member

    Joined:
    Feb 10, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
  6. charv

    charv Registered

    Joined:
    Jul 23, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    S.Devon, UK
    Success with GnuPG?

    Hi all, this GnuPG business seems to be hard work!

    Rikki - that primer would be a good idea; what method did you use thats cracked it?
    I have tried all the methods mentioned in posts on this forum and still I get the 'Script Error: somehow no output found' message delivered to me. (gsecure)
    So close yet so far!

    Also why is it that I cant view these links to threads as posted by itf - I guess they are outdated links?
    http://forums.cpanel.net/read.php?TID=4867&page=1
    http://forums.cpanel.net/read.php?TID=5389&page=1

    Any help on this matter would be gratefully recieved as this will be an essencial part of some of my clients' sites.

    Cheerz...
    Chris

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  7. charv

    charv Registered

    Joined:
    Jul 23, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    S.Devon, UK
    pschams, is it really necissary to have a go at me?

    I have been in the hosting business for about 6 weeks and on this forum for about 48 hours and my first reply is sombody having a go at me?!

    I don't know a lot about this stuff yet - if there is something I know about that will help other people then I would be glad to share that knowledge but as I am only learning I would feel a bit out of place.

    All I'm interested in right now is sorting encrypted emails - perhaps when I have done that I could make a webpage detailing exactly how I've done it - but then theres the legal issues that itf mentioned so I don't know if I should.

    Thanks for the warm welcome,
    Charv

    cPanel.net Support Ticket Number:
     
  8. jcsolutions

    jcsolutions Well-Known Member

    Joined:
    Nov 4, 2002
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    Man, what's your problem? :rolleyes: The guy could be new (and apparently is after reading his response) to either the hosting business or just these forums. EVERYONE has to start with 1 post. And if you look around, I think you'll find MOST people started with a question. Nothing wrong with that.
    Besides, even the questions help others, because I can almost guarantee that someone else out there will have the exact same question sooner or later (in general, not necessarily this thread question specifically).

    charv:
    Are you trying to setup gsecure for a single site, or server wide?
     
    #8 jcsolutions, Jul 26, 2003
    Last edited: Jul 26, 2003
  9. charv

    charv Registered

    Joined:
    Jul 23, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    S.Devon, UK
    Gsecure

    Thankyou JC, back to the point...
    I've just installed an SSL cert on tvcfm.co.uk and wish to use it as a shared resource for other web clients.
    This would seem like an easy process however no joy yet...

    There are no errors in the error log.
    The form works fine and redirects to the thankyou page no prob.
    I receive the email but it reads: "Script Error: somehow no output found"
    I am using the cgi-wraper (scgi-bin).

    Paths in the CGI script:
    $mailprog = '/usr/sbin/sendmail';
    $pgp_path = "/usr/bin/gpg";
    $pgp_temp_file_path ="/tmp";
    $pgp_options = "--batch --always-trust -eatr";

    Paths in the html:
    "pgp_key" value="charv@flitemedia.com" (I have imported the public key using cPanel - all seems fine)
    "pgp_local_dir" value="home/******/.gnupg"

    OK, I think I have covered everything!! If you have time check it out:
    https://www.tvcfm.co.uk/secureorder.shtml

    Cheers for your time and patience...
    Chris
     
  10. amard

    amard Well-Known Member

    Joined:
    Jan 18, 2003
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Herts, UK
    Hi,

    If you think that's hard, try clear-signing text with a passphrase and grabbing the output! I've had to give up using PHP and now looking at Tcl (using "expect").

    Has anyone managed to create a PHP script which clearsign's and can be done web-based? (command line is easy as you can manually type in the passphrase, you can't when it's in a browser).

    Thanks,

    Rob

    cPanel.net Support Ticket Number:
     
  11. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    So we are all waiting for your gpg-php primer. ;)
     
  12. jcsolutions

    jcsolutions Well-Known Member

    Joined:
    Nov 4, 2002
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    Well, based on everything you've stated here and what you have in your form, I can't see any problems. Sorry, but this has just gone past my abilities, so I'm stepping down. You might want to try asking itf. He seems to know everything there is to know about, well... everything. :)
     
  13. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    It looks like itf hasn't been an active member for 5 months now. I am not sure how he could help. ;)
     
  14. jcsolutions

    jcsolutions Well-Known Member

    Joined:
    Nov 4, 2002
    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    Wow, you're right. Sorry about that. :) He just had so many old posts that it seems like he's still here. hehe

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page