zEitEr
Super Moderator
Hello,
I've got 100% valid and working pair of SSL key and SSL cert. But Directadmin does not accept them, and gives an error:
My details:
I do check the cert in shell
and it gives no error.
I modify
/usr/local/directadmin/data/users/username/domains/domain.com.conf
/usr/local/directadmin/data/users/username/httpd.conf
in order to make SSL work with specified CERT, but not a server's one. And when I visit https://domain.com/ no error occurs.
I ran directadmin in debug mode, and it printed:
I don't know what might be wrong, but a year before I had the same issue with the domain, and now I want to update CERT before it expires, and the same error occurs.
And it seems the other domain on this server has not this issue with SSL certs, and directadmin accept it without a problem.
What else can I do with it?
I've got 100% valid and working pair of SSL key and SSL cert. But Directadmin does not accept them, and gives an error:
Code:
Cannot Execute Your Request
Details
Modulus=F10F37C...skipped...32CC
Certificate is Invalid
Key is Invalid
My details:
Code:
# openssl version
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
# rpm -qa | grep openssl
openssl-devel-0.9.8e-22.el5_8.3
openssl-0.9.8e-22.el5_8.3
I do check the cert in shell
Code:
cat /usr/local/directadmin/data/users/username/domains/domain.com.conf.cert | /usr/bin/openssl x509 -modulus
and it gives no error.
I modify
/usr/local/directadmin/data/users/username/domains/domain.com.conf
/usr/local/directadmin/data/users/username/httpd.conf
in order to make SSL work with specified CERT, but not a server's one. And when I visit https://domain.com/ no error occurs.
I ran directadmin in debug mode, and it printed:
Code:
certValid(cert, 1) - begin
Running /usr/bin/openssl x509 -modulus 2>&1
singleCertValid():: '/usr/bin/openssl x509 -modulus' returned 256:*****
Modulus=F10F37C2FDF19AEF4823288404B80785E5E547E3C7D21F81018B52613E861715BD55941DFE05ECBAD297D04FB5DC2AF9338692DAC0E5EC0D15D68201E1AD661EDAB534AE334E71F1BAE2FDF3C94E1395D94A9DD62797D47BF56D5BA40AA2CAE7E17004E27A0C0EA861DD7A37F7EA244732BCBF21969A7DA4F2DF0BE57FA85EE9E4743152056484698AD37D407923A69C6BE7659C7B20CD2B1AD24AFFCBE580B47DF4E44FB76E25F543329E4A5432AC6FBA93...skipped...2CC
*****
writing RSA key
unable to write key
31292:error:09072007:PEM routines:PEM_write_bio:BUF lib:pem_lib.c:595:
MimeTypes::readFile(): Unable to open /usr/local/directadmin/data/users/username/domains/domain.com.handlers for reading
Command::doCommand(/CMD_SSL) : finished
Command::run: finished /CMD_SSL
I don't know what might be wrong, but a year before I had the same issue with the domain, and now I want to update CERT before it expires, and the same error occurs.
And it seems the other domain on this server has not this issue with SSL certs, and directadmin accept it without a problem.
What else can I do with it?