katiekuwata / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

shellinabox don't work with a wildcard cert #237

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install shellinabox on Debian 7.1 about apt-get
2. We had alredy a wildcard certificate for our domain 
3. cat the private key and the certifikate to certificate.pem
4. copy / rename the certificate.pem to certificate-host.domain.pem
5. start shellinabox -d 

What is the expected output? What do you see instead?
Command line: shellinaboxd -d
Listening on port 4200
Auto-generating missing certificate "certificate.pem" for "staging.btelligent"
Failed to generate self-signed certificate "certificate.pem"
Cannot read valid certificate from "certificate.pem". Check file permissions 
and file format.

What version of the product are you using? On what operating system?
2.10

Please provide any additional information below.

the file permmissions are correct:
root@staging:~/shellinabox-2.14# ls -lh /var/lib/shellinabox/
total 12K
-rw------- 1 shellinabox shellinabox 3.5K Oct  1 12:54 certificate.pem
-rw------- 1 shellinabox shellinabox 2.8K Oct  1 12:56 certificate.pem_old
-rw------- 1 shellinabox shellinabox 3.5K Oct  1 14:14 
certificate-staging.domain.com.pem

i look into the self generated certificate - i see first the key part and then 
the certificate part.
-----BEGIN PRIVATE KEY-----
....
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----

Original issue reported on code.google.com by fabianmo...@gmail.com on 1 Oct 2013 at 2:19

GoogleCodeExporter commented 9 years ago
with version 2.14 i got the same error.

Original comment by fabianmo...@gmail.com on 1 Oct 2013 at 2:21