eu-digital-green-certificates / dgca-validation-service

Validation service can validate eu digital covid certificates for travel and booking services using business rules from dgca-businessrule-service and certificates from dgca-verifier-service.
Apache License 2.0
13 stars 10 forks source link

Error creating bean with name 'fixAccessTokenKeyProvider': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: wrong format for access keys env variable: DGC_ACCESSKEYS, expect: 'kid1:publicKey1'Error creating bean with name 'fixAccessTokenKeyProvider': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: wrong format for access keys env variable: DGC_ACCESSKEYS, expect: 'kid1:publicKey1' #77

Open Dalterix88 opened 2 years ago

Dalterix88 commented 2 years ago

Hello ,

when i try to start the project with docker, i get the error in object on spring, specifically:

Error creating bean with name 'fixAccessTokenKeyProvider': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: wrong format for access keys env variable: DGC_ACCESSKEYS, expect: 'kid1: publicKey1'

Do you know why?

Thanks

SchulzeStTSI commented 2 years ago

You forgot to set the Environmentvariable DGC_ACCESSKEYS with a value in the format kid:key

Dalterix88 commented 2 years ago

You forgot to set the Environmentvariable DGC_ACCESSKEYS with a value in the format kid:key and where should this parameter be set, and what exactly should be entered?

Dalterix88 commented 2 years ago

someone who is available to explain to me how to solve this problem?

Thanks

Il giorno lun 15 nov 2021 alle ore 22:47 SchulzeStTSI < @.***> ha scritto:

You forgot to set the Environmentvariable DGC_ACCESSKEYS with a value in the format kid:key

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eu-digital-green-certificates/dgca-validation-service/issues/77#issuecomment-969352562, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWI7WOSEXY5RKUD2YXE5WQTUMF5YRANCNFSM5ICW7UWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Loook11 commented 2 years ago

Same probelm when docker-compose up... 2021-11-24 15:26:04.689 WARN 7 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'validationService' defined in URL [jar:file:/app/app.jar!/BOOT-INF/classes!/eu/europa/ec/dgc/validation/service/ValidationService.class]: Unsatisfied dependency expressed through constructor parameter 7; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fixAccessTokenKeyProvider': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: wrong format for access keys env variable: DGC_ACCESSKEYS, expect: 'kid1:publicKey1',