Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not establish connection with CoreAAM #2

Open
posymeon opened this issue Sep 7, 2018 · 2 comments
Open

Could not establish connection with CoreAAM #2

posymeon opened this issue Sep 7, 2018 · 2 comments

Comments

@posymeon
Copy link

posymeon commented Sep 7, 2018

I have a problem while configuring and running the AuthenticationAuthorizationManager.

I have been following the wiki instructions.

I have created the saam-keystore.p12, i have placed it in the src/main/resources folder in a way that it will be found by the .jar file and i proceeded to run the .jar file with the following command

java -jar AuthenticationAuthorizationManager-5.0.3-run.jar

I used the bootstrap.properties file from the wiki (step 2.3)

The service runs but when trying to get to the http://localhost:8443/get_available_aams
as stated in the wiki i get the following error in the terminal

ERROR [AuthenticationAuthorizationManager,38b24b14c51c28b0,38b24b14c51c28b0,true] 7282 --- [nio-8443-exec-6] e.h.s.security.services.AAMServices : Couldn't establish connection with CoreAAM... falling back to local configuration

Any insights on why this problem is happening? Should i configure something that is not written in the wiki?

@mohamed-elsabagh
Copy link

I am facing the same problem when running this on my raspberry pi, and strangely enough it works normally on my Ubuntu machine, did you manage to fix this?

@mohamed-elsabagh
Copy link

Hello @posymeon, after little investigation about this error, I found that the problem is when the AuthenticationAuthorizationManager application want to get the info from external https service https://symbiote-open.man.poznan.pl/coreInterface/aam/get_available_aams the certificate used is not recognized by certificate authority list in java used on my machine, so I uninstalled my oracle java and installed openjdk which seems to have let'sencrypt (used by the required website) in the CA list for the java virtual machine.
If you don't wanna uninstall your java version you can add this certificate authority to your current Java by following one of those solutions https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find or https://stackoverflow.com/questions/9210514/unable-to-find-valid-certification-path-to-requested-target-error-even-after-c hopes this is helpful to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants