Skip navigation
Currently Being Moderated

Error "no credential found with alias"

Oct 29, 2009 10:08 AM

Hi all,

 

    I'm running through an installation of LiveCycle ES with reader extensions.  Everything looks on the up and up, but I'm getting "No credential found with alias" in my logs.  I have the credential from Adobe installed in the livecycle config console with a random alias.  The question is where do I use this alias in my configuration?  I'm using WAS 6.1.

    I've searched the forums for this error and there was mention of it because there are some user permissions issues, but I'm running WAS under my account which is an admin user.

    Any help would be appreciated.

 

               Thanks

 
Replies
  • Currently Being Moderated
    Oct 29, 2009 10:23 AM   in reply to Vec123

    When you installed the cert into LC you had to give an alias name to it. If you do not know what it is you can access it through the adminui application. IN many services when RE is being used or asked  for you need to enter the alias of the cert that you want to use. Which service are you using? I woudl make sure that RE is working prperly 1st. There is a web application that ships with it. Go to this URL and see if the screens come up:

     

    http://servername:portnumber/ReaderExtensions

     

    There is a Reader Extensions application user role so the only user who can use this (until you give that right) is admninistrator.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2009 10:55 AM   in reply to Vec123

    No necccessarily ......1st things 1st ......ther eerror you were getting indicates that the alias name that you gave in the Service that you were using is not found ....that means that the RE cert is not even getting acessed correctly. Which service are you using and where did you put the cert (in which store).

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2009 11:51 AM   in reply to Vec123

    Nope it is in the right place and you shoudl not have to do anything to websphere. Now how are you applying the Rights to the form? Through the UI that I showed you or through a process orchestration?

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2009 12:24 PM   in reply to Vec123

    You have validated that RE is setup correctly so we know that is not an issue. Previous to version 8 you had to bake the credential into the ear file. Part of that process involved defining an alias (I am going from memory so I might be a little off here). When the developers created that program they woudl have had to reference that alias that was created. In version 8 you add the credential after the fact and can see and deal with the alias without having to recreate the whole ear file. I am guessing that the alias that you gave it is not the same as th eone that is used in the code. If so you can solve this in two ways. Modify the code to use the alias that you gave the credential in Adminui or find out what alias was used in the past and delete the credential from the trust store and import it again giving it the alias that was used in the code.

     

    That woudl explain the original error message that you recieved indicating that it could not find the alias (mentioned in the code). Does the error message include the alias name that it cannot find?

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2009 12:42 PM   in reply to Vec123

    That sounds familiar - I think it had to do with the version of Flash Player. You probably have version 10 and that screen was built for 9. So you can either downgrade to 9 or there was a servicePack that was created to support version 10 of the flash player (SP2 I think).

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2009 12:48 AM   in reply to Vec123

    Just found this thread, I'm wrestling with a similar problem:

    I have installed a credential, and can use the Web App as described

    above to assign rights to PDF documents.

    BUT I have a Java app that tries to do the same thing, and this fails

    with a message "ALC-RES-001-002: Keine Berechtigung mit dem

    Alias  [LCRE_Credential_20100630] gefunden" (german for "no

    credential found with alias").

     

    It got interesting, though, when I realized that my Java app worked just

    fine when I let it connect as administrator to the LiveCycle Server, but

    not as a "normal" user. That "normal" user has the ReaderExtensions

    role, and can use the Web App without problems.

     

    So if you get your remote app to work, I would appreciate any pointers

    how you solved this.

     

    TIA

      Guido

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2009 5:54 AM   in reply to g_weber

    Make sure that the context (i.e. user account) that the code is being executed as, has the correct permissions to "read" from the Trust Store (Credential Read).

     

    Home > Settings > User Management > Role Management > Trust Administrator

     

     

    Regards

    Steve

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 16, 2009 6:05 AM   in reply to SForrest96

    Thanks a lot, that did it!

     

    Guido

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2011 6:10 AM   in reply to Vec123

    Hi,

    I have the same problem but the solutions shown here did not help for me. I am unable to add RE to a pdf using the "administrator" credential. I have that in "local credentials" in the LC adminui. It is valid until 2012. I can use that credential to add RE to a pdf using the web interface for that, but from my java application it does not work.

     

     

    I get this Exception:

    java.lang.AssertionError: com.adobe.livecycle.readerextensions.client.CredentialException: ALC-RES-001-002: No credential found with alias [ADMINISTRATOR].

     

     

     

    In the java code I use this statement to add RE to the pdf:

     

    reClient.applyUsageRights(doc, "ADMINISTRATOR", null, reOptions);

     

     

     

    What am I missing here?

     

    Cheers,

    Arne

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2011 7:10 AM   in reply to ArneAtAdobe

    Problem solved. It is the solution that SForrest96 described.

     

     

    In the connection properties you give a username that your application uses to connect to the LC server. this user has to be in the role Trust Administrator, just like SForrest96 pointed out. Then you use the Alias of the certificate that you see in the ReaderExtensions web interface. If you have more than one, take the one that is valid. If this alias is LCRETRIAL3, then you use this line of code:

     

    Document rightsEnabledPDF = reClient.applyUsageRights(doc, "LCRETRIAL3", null, reOptions);

     

     

    BTW, you can see the exception in the server log of the LC server. When it says something like:

     

    Caused By: Insufficient Privileges for Credential Read -- (error code bin: 0, hex: 0x0)(CredentialServiceImpl.java100)

     

    then you know your user is not in the role Trust Administrator.

     

     

    Cheers,

    Arne

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2011 7:20 AM   in reply to ArneAtAdobe

    When you imported the credential into the trust store you gave it an alias ...that is the name that shoudl be used to reference that credential. It shoudl also be imported into the Local Credentials store and when you do you need to idntify it as a Reader Extensions credential by clicking the appropriate checkbox.

     

    Paul

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points