Ticket #4839 (closed defect: fixed)
Certificates with blanks in the name cannot be downloaded
| Reported by: | benz@… | Owned by: | jamor@… |
|---|---|---|---|
| Milestone: | 2.2.X | Component: | ca |
| Severity: | normal | Keywords: | |
| Cc: |
Description
- Create a certificate with "vpn-office user1"
- Click on the green download arrow
Expected behaviour: the certificate is downloaded
Observed behaviour: the page is reloaded showing Error creating file: No such file or directory and the url https://10.0.1.201/CA/DownloadFiles?cn=vpn-office%20user1
Attachments
Change History
comment:1 Changed 9 months ago by jacalvo@…
- Status changed from new to accepted
- Milestone set to 3.0
comment:2 Changed 9 months ago by jamor@…
Hello Benz and thanks for your report,
However I am able to download and extract the certificate with spaces:
jag@zapp:/tmp$ tar xvzf keys-and-cert-vpn-office\ user1.tar.gz vpn-office user1-private-key.pem vpn-office user1-public-key.pem vpn-office user1-cert.pem vpn-office user1.p12
I think the problem is not the certificate itself but something on the download procedure. Maybe you are missing the temporal directory for downloads. Could you report the output of this command?
root@as:~# sudo ls -dl /var/lib/zentyal/tmp/
the correct output should be:
drwxr-xr-x 3 ebox ebox 4096 juil. 19 22:27 /var/lib/zentyal/tmp/
Regards,
Javier
comment:3 Changed 9 months ago by jamor@…
- Status changed from accepted to closed
- Resolution set to worksforme
Sorry, I need the requested feedback to continue with this issue
comment:4 Changed 9 months ago by benz@…
- Status changed from closed to reopened
- Resolution worksforme deleted
Here is the output you have requested
toor@smsse01:~$ sudo ls -dl /var/lib/zentyal/tmp/ drwxr-xr-x 4 ebox adm 4096 2012-08-21 09:33 /var/lib/zentyal/tmp/
On my machine I see a clear pattern: subject names with space in them cannot be downloaded, subject names without spaces can be downloaded. I am running a Zentyal with core version 2.2.7.
(please allow for some reaction time on my side...it is stil holiday period in some parts of Europe ;-)
comment:5 Changed 9 months ago by jamor@…
- Status changed from reopened to closed
- Resolution set to fixed
- Milestone changed from 3.0 to 2.2.X
Hello Benx,
the problem is that I believed you had a 2.3.X versions in which the problem is already fixed.
It was fixed in this changesrt http://git.zentyal.org/zentyal.git/commit/668d0e63
I had checked that if you apply the changes in CA.pm to a 2.2.X version, it works. So you can choose between waiting for a release of zentyal-ca with the backport or hotfix to your system.
If you want to hotfix, you will need to apply the diff to /usr/share/perl5/EBox/CA.pm You can grab the diff at http://git.zentyal.org/zentyal.git/blobdiff/f9fa5a1de475dc3164b89b21147790fece1e87c8..668d0e63:/main/ca/src/EBox/CA.pm
After that execute 'sudo /etc/init.d/zentyal apache restart' to reload the web interface.
Regards,
Javier