Author Topic: upgrade 6.2 to 7.0 - CA problem  (Read 3286 times)

branislav.kopun

  • Zen Apprentice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
upgrade 6.2 to 7.0 - CA problem
« on: March 13, 2021, 09:57:54 pm »
All seems working but after focus to Certification Authority / General I get only red frame with:
Unknown error. Given the OpenSSL output: Using configuration from /var/lib/zentyal/conf/openssl.cnf Can't load /var/lib/zentyal/.rnd into RNG 140692167914816:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:98:Filename=/var/lib/zentyal/.rnd Cannot write random bytes: 140692167914816:error:24070079:random number generator:RAND_write_file:Cannot open file:../crypto/rand/randfile.c:233:Filename=/var/lib/zentyal/.rnd

chmod of file /var/lib/zentyal/.rnd is same 0600 root:root

vshaulsk

  • Zen Samurai
  • ****
  • Posts: 477
  • Karma: +9/-1
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #1 on: March 15, 2021, 12:21:26 am »
No that it helps, but I have the same issue

Sand_man

  • Zen Samurai
  • ****
  • Posts: 280
  • Karma: +24/-0
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #2 on: March 15, 2021, 02:59:25 pm »
And mine.

ggowins

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +5/-0
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #3 on: March 17, 2021, 04:29:46 am »
I'm getting this as well post-upgrade.   I chown'd the .rnd to ebox:ebox and that seems to have resolved it. 

Sand_man

  • Zen Samurai
  • ****
  • Posts: 280
  • Karma: +24/-0
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #4 on: March 17, 2021, 08:37:38 am »
I'm getting this as well post-upgrade.   I chown'd the .rnd to ebox:ebox and that seems to have resolved it.

Thanks It works!

Daniel Joven

  • Zentyal Staff
  • Zen Apprentice
  • *****
  • Posts: 45
  • Karma: +21/-0
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #5 on: March 17, 2021, 12:26:32 pm »
Hi,

Just to inform you that the issue is fixed in the package's version 'zentyal-ca 7.0.1'.

Best regards, Daniel Joven.

vshaulsk

  • Zen Samurai
  • ****
  • Posts: 477
  • Karma: +9/-1
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #6 on: March 19, 2021, 12:10:31 pm »
Has zentyal-ca 7.0.1 been pushed out yet ?   

havacuban

  • Zen Monk
  • **
  • Posts: 55
  • Karma: +5/-0
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #7 on: March 20, 2021, 06:04:09 pm »
Hello
I keep the problem
Zentyal-CA 7.0.1

Error desconocido. Se ofrece la salida de OpenSSL: Can't load /var/lib/zentyal/.rnd into RNG 140351545197888:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:98:Filename=/var/lib/zentyal/.rnd Generating a RSA private key ..................++++ .....................................................................++++ writing new private key to '/var/lib/zentyal/CA/private/cakey.pem' ----- Cannot write random bytes: 140351545197888:error:24070079:random number generator:RAND_write_file:Cannot open file:../crypto/rand/randfile.c:233:Filename=/var/lib/zentyal/.rnd

Solved the problem

remove zentyal-ca
delete .rd in / var / lib / zentyal
install zentyal-ca
« Last Edit: March 20, 2021, 11:59:48 pm by havacuban »

branislav.kopun

  • Zen Apprentice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #8 on: June 24, 2021, 09:57:43 pm »
This worked
Code: [Select]
sudo chown ebox:ebox /var/lib/zentyal/.rnd
« Last Edit: June 25, 2021, 07:41:36 pm by branislav.kopun »

gabor.strama

  • Zen Monk
  • **
  • Posts: 51
  • Karma: +5/-0
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #9 on: March 08, 2022, 09:43:16 pm »
Hi,

This solution is worked for me...


This worked
Code: [Select]
sudo chown ebox:ebox /var/lib/zentyal/.rnd

BR,
GáborS


MikeAllen

  • Zen Apprentice
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
Re: upgrade 6.2 to 7.0 - CA problem
« Reply #10 on: March 12, 2022, 03:48:59 am »
Setting ownership on that file resolved the same issue for me. Thanks!