International-Data-Spaces-Association / omejdn-daps

Open Source implementation of the Dynamic Attribute Provisioning Service based on http://github.com/Fraunhofer-AISEC/omejdn-server
Apache License 2.0
5 stars 10 forks source link

While running the command #33

Open junaidtk opened 1 year ago

junaidtk commented 1 year ago

I am trying to run the repository on my local. While configuring I have followed the step mentioned in the repository. While configuring I am stuck in the below step.

$ scripts/register_connector.sh NAME SECURITY_PROFILE CERTIFICATE_FILE

It is not giving the successful result. The error message is give below.

Generating a 2048 bit RSA private key
................................................................................................................................................+++++
.....+++++
writing new private key to 'keys/junu.key'
-----
error, no objects specified in config file
problems making Certificate Request
grep: keys/junu.cert: No such file or directory
grep: keys/junu.cert: No such file or directory
Error opening Certificate keys/junu.cert

While checking the register_connector.sh, the issue is arising from the below line.

openssl req -newkey rsa:2048 -new -batch -nodes -x509 -days 3650 -text -keyout "keys/${CLIENT_NAME}.key" -out "$CLIENT_CERT"

Any help is much appreciated.

bellebaum commented 1 year ago

Hey, it seems like OpenSSL was improperly installed/configured on your system. Usually, there should be a default configuration file "openssl.cnf" in the directory indicated as OPENSSLDIR in the output of openssl version -a. That file seems to not be present / corrupted or overshadowed by environment variables

junaidtk commented 1 year ago

I have checked the openssl, it is working fine when I use openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout keys/omejdn/omejdn.key -out daps.cert It is creating daps.cert file in the root folder (reference)

while checking the config file, it is there in this path /private/etc/ssl/openssl.cnf

The command openssl version -a is outputting the below details. LibreSSL 3.3.6 built on: date not available platform: information not available options: bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) blowfish(idx) compiler: information not available OPENSSLDIR: "/private/etc/ssl"

Am I missing anything ?