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

RANDFILE not correct on ubuntu 12.04.04 #29

Closed
mpucholblasco opened this issue Apr 1, 2014 · 3 comments
Closed

RANDFILE not correct on ubuntu 12.04.04 #29

mpucholblasco opened this issue Apr 1, 2014 · 3 comments

Comments

@mpucholblasco
Copy link

RANDFILE has an incorrect value ($ENV::HOME) on ubuntu 12.04.04.

Steps to reproduce the bug:

  • Using current RANDFILE value ($ENV::HOME) on Ubuntu 12.04.04, openssl version 1.0.1-4ubuntu3
  • Apply the following manifest:
  openssl::certificate::x509 { 'test.example.com':
    ensure       => present,
    country      => 'ES',
    organization => 'example.com',
    commonname   => $fqdn,
    base_dir     => '/tmp',
    owner        => 'root',
    password     => 'fake',
  }

Current behaviour:

  • The following error is shown:
Error: Execution of '/usr/bin/openssl req -new -key /tmp/test.example.com -config /tmp/mail.awsdev.netquestapps.com.cnf -out /tmp/test.example.com.csr -passin pass:fake' returned 1: error on line 6 of /tmp/test.example.com.cnf
139940285789856:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:618:line 6

Expected behaviour:

  • Certificates should be generated.

Way to fix the bug:

  • Use absolute path (using /root/.rnd fixes the bug)
@cjeanneret
Copy link
Contributor

Hello,

Thank you for the bug report. It would be better to set HOME in the config file, and let the user set it through some variable.

Also, reading this note seems to show your openssl version is maybe a bit old?
https://www.openssl.org/docs/apps/config.html#NOTES

We will look to that as soon as possible.

Cheers,

C.

@mpucholblasco
Copy link
Author

Hello,
first all, thanks for your reply.

My apologies. I was using an old openssl version. It currently works with version 1.0.1-4ubuntu5.12. I have updated it due to openssl heartbleed bug.

Thank you very much for your comment.

Cheers,
M.

@lathiat
Copy link

lathiat commented May 28, 2014

This still happens to me on Ubuntu 14.04

I suspect the issue is more that $HOME just isn't set within my puppet environment.

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

3 participants