Author Topic: [SOLVED} This is a new one on me CA related  (Read 5981 times)

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
[SOLVED} This is a new one on me CA related
« on: April 01, 2012, 02:04:40 am »
I let my certificates lapse without renewing it on my home system.  I tried to create a new one but I keep getting this message on the GUI 


Unknown error. Given the OpenSSL output: Generating a 1024 bit RSA private key ...................++++++ ......................++++++ unable to write 'random state' writing new private key to '/var/lib/zentyal/CA/private/cakey.pem' ----- problems making Certificate Request 22553:error:0D07A098:asn1 encoding routines:ASN1_mbstring_ncopy:string too short:a_mbstr.c:147:minsize=2 error in req


 I was hoping that someone had already run into this.

Zentyal 2.2
all modules up to date

I have already tried rm -r /var/lib/zentyal/CA to no avail.

Thanks in advance
« Last Edit: April 01, 2012, 03:16:58 am by half_life »

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: This is a new one on me CA related
« Reply #1 on: April 01, 2012, 03:16:25 am »
I solved it.  It was a two part issue.  First  "unable to write random state"  is a permissions problem with /var/lib/zentyal/.rnd .  I loosened up the permissions and that part of the error went away.  Next was a little more puzzling but the clue is minsize=2.  I had been entering in 1 in "Country Code"  and that was what was generating the error.