unable to install an intermediate cert in Webmin from GeoTrust

For some reason I cannot get this to work. I have downloaded their .pem file and tried it as a .pem file and as a .crt file using Webmin Configuration/SSL Encryption. I tried uploading it with the Upload Certificate tab and also by uploading it manually and pointing directly to it in the SSL Settings tab. When I try to upload it through the interface it gives me this error - Failed to save new key : Missing or invalid PEM format key.

Status: 
Active

Comments

Howdy -- what is the PEM key that you're trying to upload? Can you paste it into here?

Another option though is that you could setup that SSL certificate as part of a Virtual Server, and once that's working, you could click the "Copy to Webmin" button. While a valid PEM key should work in either location, adding it via Virtualmin can be a simpler process and is easier to test.

This is their .pem file.

-----BEGIN CERTIFICATE----- MIID+jCCAuKgAwIBAgIDAjbSMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9i YWwgQ0EwHhcNMTAwMjI2MjEzMjMxWhcNMjAwMjI1MjEzMjMxWjBhMQswCQYDVQQG EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEdMBsGA1UECxMURG9tYWluIFZh bGlkYXRlZCBTU0wxGzAZBgNVBAMTEkdlb1RydXN0IERWIFNTTCBDQTCCASIwDQYJ KoZIhvcNAQEBBQADggEPADCCAQoCggEBAKa7jnrNpJxiV9RRMEJ7ixqy0ogGrTs8 KRMMMbxp+Z9alNoGuqwkBJ7O1KrESGAA+DSuoZOv3gR+zfhcIlINVlPrqZTP+3RE 60OUpJd6QFc1tqRi2tVI+Hrx7JC1Xzn+Y3JwyBKF0KUuhhNAbOtsTdJU/V8+Jh9m cajAuIWe9fV1j9qRTonjynh0MF8VCpmnyoM6djVI0NyLGiJOhaRO+kltK3C+jgwh w2LMpNGtFmuae8tk/426QsMmqhV4aJzs9mvIDFcN5TgH02pXA50gDkvEe4GwKhz1 SupKmEn+Als9AxSQKH6a9HjQMYRX5Uw4ekIR4vUoUQNLIBW7Ihq28BUCAwEAAaOB 2TCB1jAO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IjaWC9m OSm9BXiLnTjoBbdqfnGk5sRgprDvgOSJKA+eJdbtg/OtppHHmMlCGDUUna2YRpIu T8rxh0PBFpVXLVDviS2Aelet8u5fa9IAjbkU+BQVNdnARqN7csiRv8lVK83Qlz6c JmTM386DGXHKTubU1XupGc1V3sjs0l44U+VcT4wt/lAjNvxm5suOpDkZALeVAjmR Cw7+OC7RHQWa9k0+bw8HHa8sHo9gOeL6NlMTOdReJivbPagUvTLrGAMoUgRx5asz PeE4uwc2hGKceeoWMPRfwCvocWvk+QIDAQABo4HwMIHtMB8GA1UdIwQYMBaAFEjm aPkr0rKV10fYIyAQTzOYkJ/UMB0GA1UdDgQWBBTAephojYn7qwVkDBF9qn1luMrM TjAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjA6BgNVHR8EMzAxMC+g LaArhilodHRwOi8vY3JsLmdlb3RydXN0LmNvbS9jcmxzL3NlY3VyZWNhLmNybDBO BgNVHSAERzBFMEMGBFUdIAAwOzA5BggrBgEFBQcCARYtaHR0cHM6Ly93d3cuZ2Vv dHJ1c3QuY29tL3Jlc291cmNlcy9yZXBvc2l0b3J5MA0GCSqGSIb3DQEBBQUAA4GB AHbhEm5OSxYShjAGsoEIz/AIx8dxfmbuwu3UOx//8PDITtZDOLC5MH0Y0FWDomrL NhGc6Ehmo21/uBPUR/6LWlxz/K7ZGzIZOKuXNBSqltLroxwUCEm2u+WR74M26x1W b8ravHNjkOR/ez4iyz0H7V84dJzjA1BOoa+Y7mHyhD8S -----END CERTIFICATE-----

Yeah that does appear correct.

Out of curiosity, are you able to add that to an SSL certificate in Virtualmin, or do you receive the same problem?

I did not try adding it to the SSL cert. I will try appending it to the existing cert and let you know what happens.

Ah, I didn't mean embedded within the SSL cert -- I meant that you could use Virtualmin, rather than Webmin, to add an SSL cert and intermediate cert. I was wondering if doing it from Virtualmin, rather than Webmin, allowed it to work properly.

Sorry about that. I am not sure how that would work. Is there a way to install the cert for webmin in virtualmin but not for one of the virtual sites? The cert I have is specifically for the hostname of the server.

Any other ideas? Shouldn't putting the intermediate cert on the server and manually installing it work? I thought I tried that but maybe I did something wrong.

To install it in Virtualmin, it would need to be associated with a particular Virtual Server.

However, it should certainly work when installing that from within Webmin.

Could you try going back into Webmin -> Webmin -> Webmin Configuration -> SSL Encryption, click the "Upload Certificate" tab, and there, paste your Intermediate Certificate into the "Chained certificate text" field.

Then, select the "Entered below" button.

Next -- take a screenshot of that, and if this next part doesn't work, email that to "eric@virtualmin.com".

But as the final step -- are you able to save it now, or do you continue to see the same error?

Okay, thanks for your email -- I think I see what the issue here is.

When using the Webmin GUI, it appears that you can't install just an intermediate certificate.

Try including the SSL certificate and private key in the fields above the intermediate certificate, and see if it allows you to save it at that point.