Won't generate new certificates due to "can't use string as ARRAY ref" error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tinyca (Debian) |
Fix Released
|
Unknown
|
|||
tinyca (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: tinyca
tinyca2 does not generate new certificates if CA cert has no Organization Unit (OU field) defined. In this case, it just reports a weird error to the console:
*** unhandled exception in callback:
*** Can't use string ("dd") as an ARRAY ref while "strict refs" in use at /usr/share/
*** ignoring at /usr/bin/tinyca2 line 112.
and does not show anything in GUI. I have found a fix in the net and it worked fine:
http://<email address hidden>
Fixed GUI.pm file attached.
=======
Description: Ubuntu 9.04
Release: 9.04
tinyca:
Installed: 0.7.5-2
Candidate: 0.7.5-2
Version table:
*** 0.7.5-2 0
500 http://
100 /var/lib/
Related branches
tags: | added: patch |
Changed in tinyca (Debian): | |
status: | Unknown → Confirmed |
Changed in tinyca (Debian): | |
status: | Confirmed → Fix Released |
In fact, I get the "can't use string as ARRAY ref" error every time I try to generate a certificate request:
*** unhandled exception in callback: tinyca/ GUI.pm line 1253.
*** Can't use string ("OECA") as an ARRAY ref while "strict refs" in use at /usr/share/
*** ignoring at /usr/bin/tinyca2 line 112.
So for me, TinyCA is unable to generate cert requests at all.
The proposed patch does NOT fix the problem, because it also refers to the undefined array. I'm attaching a revised patch that does fix the problem.