View Full Version : Does SSL cert install work in DA?
Arkansas
10-21-2003, 01:09 PM
Has anyone used the Direct Admin panel to INSTALL a purchased SSL certificate? It doesn't seen to work for me.
I was able to generate a CSR to send to ComodoGroup, where I got a certificate. But I was not able to install it through DA.
After going to User Panel > Advanced Tools > Install SSL Certificate > click button 'Paste a pre-generated certificate and key' > after Private Key info I pasted from text editor my new certificate and clicked SAVE (step 3 in DA site-helper docs). I get the DA message 'Could not execute your request' > DETAILS > 'Unable to find key'.
Am I missing something here? Do I need to install it (or some of it) manually in the appropriate directories using SSH > Command Line?
Thanks
DirectAdmin Support
10-22-2003, 11:49 AM
Hello,
Make sure you have both the key and certificate in the window before you click "Save". They key and cert should look like:
-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQDX0YaoMRPBO62u7B8x3ksriPl4b8+54JhTUhVfXO2fV0txL38M
dvHX+BluzEON1G4eWeFU6+BVHHUGZnil5Es9JflQatLkMFabL2v+CbbH8koi4oK3
rzUCysntosJ93tkWW4Xg80xHMcal87ZHsBSmZ5QbpeZx8XfATI3pxMo1UwIDAQAB
AoGAeOidtCSqmJtClrkaUOnk2yMGAH9DtTMqo6Nc7ew2BAr37RVa7DTHEOOh+/zb
692TQ9W+88CiEYy70zYdaXMY4sXABnc8r4125QW+s1NzNXY/CqaLjY8wPPFn6Cdo
nTl+gTVRMYeDWex3xNeFy9Yk8PtCzyuvvB+gktneBn445kECQQDrrhV2/DSapPkx
tUpM5ew/ah3lm6OTVnH+YakTkfnO34WBtnPIStV5l1iEgVK6Ay1NFPO2KoTkud5d
oxr10W95AkEA6m0PHW2bEh7xeO65opwVnZd41LK6kEvrn7jUljZeSPScSW+pPNIw
YANzXpDxFb7epg73azWqgmA2JK67FrVcKwJBANhauGPBhX0Nw6HJXosXa3iPryBw
b4q7iexPtQo9MMmj0ojQeJu/bxevQ1ho7AvNDNI9ULnDcLoUkzj8maxedmkCQQCj
3qCWPawMurypgJcbaGhjxSKd7GIlxCxtdlKEvnSiIvutCfU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ku0o0vUmDPqLfSXA5OC9NBzEAzgAETzAWj52Q==
-----END CERTIFICATE-----
So Make sure the actual key is on a different line than the "-----BEGIN RSA PRIVATE KEY-----" bit.
John
Arkansas
10-22-2003, 01:39 PM
Thanks. I tried it again and found out why it couldn't find key. When I place my cursor on the line below RSA private key, and use the "Paste from Clipboard" function in DA, it deletes the RSA private key when it pastes in my certificate. (It does this if I have the default certificate highlighted or if I have deleted it and all that remains is the Private key).
So I did it again, leaving the private key there and pasting with CTRL-V instead of using DA's 'Paste from clipboard' function. NOW when I click on SAVE I get this error message: "Could not execute your request
Details
error using key: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
The certificate and key do not match. Please ensure you are using the correct key with this certificate "
_________________________________________
Again, has any DA user tried installing their SSL cert through DA? Does it work for you?
DirectAdmin Support
10-22-2003, 11:31 PM
Hello,
That error is produced when the key and certificate used arn't a matching pair. If they were allowed apache would hang and a server reboot would send the kernel into panic mode :) (bad).. The key needs to be the exact same key used to when the csr was generated. It will be in the box, awaiting its certificate to be bought and pasted beside it. (Note on all admin accounts, it will provide the key with the csr and not paste it in the box).
So you need to find the key that was generated with the csr.
John
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.