Endpoint Encryption

 View Only
  • 1.  PGP not working from web service hosted in IIS

    Posted Apr 08, 2011 06:50 AM

    Hi

    I am getting the an error when I call PGP from web service. However, when I call it from command line or directly from code, it works fine. It is working in one of our environments and not on my local system. I have checked all the permissions in both the environments and dont seem to find any difference. Can you please help me with your suggestions. It is getting very critical.

    The error message I am getting is

    PGP return code: 21, Error text: Public key encryption error

    Recipients' public key(s) will be used to encrypt.

    Cannot find the public key matching userid 'Vijay Koul <vijay.koul@test.com>'
    This user will not be able to decrypt this message.
    Encryption error

    Any help will be hugely appreciated.

    Thanks

    Vijay



  • 2.  RE: PGP not working from web service hosted in IIS

    Posted Apr 08, 2011 07:41 AM

    Most likely your Web Service user has a different profile and you need to specify the location to the keyrings with the parameters --public-keyring and --private-keyring and specify the full path to your keyring files. Another cause could be that the web service user does not have read access to the keyring files.