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

docker image 8.3.2 openssl not found #314

Open
nikosft opened this issue Jan 24, 2023 · 2 comments
Open

docker image 8.3.2 openssl not found #314

nikosft opened this issue Jan 24, 2023 · 2 comments

Comments

@nikosft
Copy link
Contributor

nikosft commented Jan 24, 2023

In this image version many operations fail because openssl is not found I executed bash the fiware-keyrock container and I manually installed openssl. Then the issue was resolved.

@nikosft
Copy link
Contributor Author

nikosft commented Jan 24, 2023

Openssl was installed using the following commands. From the host

docker exec -it fiware-keyrock bash

Then

apt-get update
apt-get install openssl

@bramk
Copy link
Contributor

bramk commented Jun 1, 2023

Thanks @nikosft! Just wish I had found your issue earlier.

Image 8.3.3. still affected

GET /health 200 5.500 ms - 13747
POST /idm/applications - - ms - -
2023-06-01T12:30:18.627Z idm:web-session_controller --> login_required
2023-06-01T12:30:18.627Z idm:web-session_controller --> password_check_date
2023-06-01T12:30:18.627Z idm:web-application_controller --> create
2023-06-01T12:30:18.628Z idm:web-application_controller --> generate_app_certificates
2023-06-01T12:30:18.644Z idm:web-application_controller Error:  Error: Command failed: openssl genrsa -out certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-key.pem 2048 && openssl req -new -sha256 -key certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-key.pem -out certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-csr.pem -subj "/C=IK/ST=World/L=World/O=qqq/OU=qqq/CN=https" && openssl x509 -days 365 -req -in certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-csr.pem -signkey certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-key.pem -out certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-cert.pem
/bin/sh: 1: openssl: not found

    at ChildProcess.exithandler (child_process.js:383:12)
    at ChildProcess.emit (events.js:400:28)
    at maybeClose (internal/child_process.js:1088:16)
    at Socket.<anonymous> (internal/child_process.js:446:11)
    at Socket.emit (events.js:400:28)
    at Pipe.<anonymous> (net.js:686:12) {
  killed: false,
  code: 127,
  signal: null,
  cmd: 'openssl genrsa -out certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-key.pem 2048 && openssl req -new -sha256 -key certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-key.pem -out certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-csr.pem -subj "/C=IK/ST=World/L=World/O=qqq/OU=qqq/CN=https" && openssl x509 -days 365 -req -in certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-csr.pem -signkey certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-key.pem -out certs/applications/5936f76d-a9ac-4549-8399-c094b94d094a-oidc-cert.pem'
}
(node:19) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
    at /opt/fiware-idm/controllers/web/applications.js:483:26

bramk added a commit to bramk/fiware-idm that referenced this issue Jun 5, 2023
Added install of openssl package to the distro build stage when
using (default) package manager apt.

Solves ging#314
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