Ticket #512 (closed defect: fixed)
Error creating tar.gz certs package file when name includes space
| Reported by: | xenomuta | Owned by: | ejhernandez@… |
|---|---|---|---|
| Milestone: | 0.9 | Component: | ca |
| Severity: | normal | Keywords: | CA certificate autority tar tar.gz |
| Cc: |
Description
There is a really simple bug in the Certificate Manager module. It triggers when you try to download certificate files for an issued certificate whose common name contains space or special characters. I think that no quotes or back-slashes where used when creating tar.gz with the "tar" unix tool.
Here we have an extract from /var/lib/ebox/log/error.log
tar: Doe.tar.gz: Cannot stat: No such file or directory tar: John: Cannot stat: No such file or directory tar: Doe-private-key.pem: Cannot stat: No such file or directory tar: John: Cannot stat: No such file or directory tar: Doe-public-key.pem: Cannot stat: No such file or directory tar: John: Cannot stat: No such file or directory tar: Doe-cert.pem: Cannot stat: No such file or directory tar: Error exit delayed from previous errors
Thanks for your support. I'm gonna look into and fix it.