Certificates in DER or CER format?
Posted: Thu Dec 15, 2016 2:24 pm
Hello, I have looking into the forums and couldn't find an aswer. I want to enable https on webfig. I uploaded a cert and a key to my router and enabled www-ssl
Basically (once files were in place) I just did..
The problem is that if I upload the certificate in CER format (plain text) such as:
I can see it being imported and it appears in the certificate store, but I can't acces to the https url for the router.
But if I use the certificate in DER format (binary), it just works.
It's weird because I am always uploading the key in plain
Does anyone have an explanation for this? I'd rather upload the files in CER format because it's more convenient for me
UPDATE: Both type of certs are fine, the issue was related on not choosing the proper one for the https connection, see the post at the end for the full explanation
Basically (once files were in place) I just did..
Code: Select all
/certificate import file-name=cert_ge.crt
/certificate import file-name=cert.key
/ip service enable www-ssl
Code: Select all
-----BEGIN CERTIFICATE-----
MIIDFjCCAf6gAwIBAgIBAjANBgkqhkiG9w0BAQsFADB5MR8wHQYDVQQDDBZkc2ku
...
-----END CERTIFICATE-----
But if I use the certificate in DER format (binary), it just works.
It's weird because I am always uploading the key in plain
Code: Select all
-----BEGIN PRIVATE KEY-----
MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAOQ/mRBjjnZPr+Ds
....
-----END PRIVATE KEY-----
Does anyone have an explanation for this? I'd rather upload the files in CER format because it's more convenient for me
UPDATE: Both type of certs are fine, the issue was related on not choosing the proper one for the https connection, see the post at the end for the full explanation