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

While running the command #33

Open
junaidtk opened this issue May 15, 2023 · 2 comments
Open

While running the command #33

junaidtk opened this issue May 15, 2023 · 2 comments
Assignees

Comments

@junaidtk
Copy link

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
Copy link
Contributor

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
Copy link
Author

junaidtk commented May 15, 2023

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 ?

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