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

OpenSSL can't find distinguished name in config #14

Closed
acavella opened this issue Jan 3, 2023 · 2 comments
Closed

OpenSSL can't find distinguished name in config #14

acavella opened this issue Jan 3, 2023 · 2 comments

Comments

@acavella
Copy link
Owner

acavella commented Jan 3, 2023

Versions

TrustedCore-RA ver. 1.0.0

Platform

  • OS and version: CentOS 7.9
  • Additional: OpenSSL 1.0.2k-fips

Expected behavior

Generate CSR from private key.

Actual behavior / bug

OpenSSL errors during CSR process.

Additional context

2023-01-03T23:22:15Z 24352 [info] Generated RSA private key, /home/acavella/trustedcore-ra/output/YXAVJJ4OPQ/YXAVJJ4OPQ.key with a subject YXAVJJ4OPQ
unable to find 'distinguished_name' in config
problems making Certificate Request
139865373415312:error:0E06D06C:configuration file routines:NCONF_get_string:no value:conf_lib.c:324:group=req name=distinguished_name
@acavella acavella added this to the v1.0 milestone Jan 3, 2023
@acavella acavella self-assigned this Jan 3, 2023
@acavella
Copy link
Owner Author

acavella commented Jan 4, 2023

Cannot use a combination of inline and conf file. For backwards compatibility will switch to using config file only.

@acavella
Copy link
Owner Author

acavella commented Jan 4, 2023

Removed inline subject specification from OpenSSL csr generation. Moved CN to openssl cnf file. Perform in-file replacement of commonName key/value pair.

@acavella acavella closed this as completed Jan 4, 2023
@acavella acavella mentioned this issue Jan 4, 2023
acavella added a commit that referenced this issue Jan 4, 2023
Fixes #14 
Implement backwards compatibility with OpenSSL 1.0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant