【重要資安警示】發現冒充 Qfinder Pro 的非官方網站,了解詳情 >

How can I check if my SSL certificate and private key match when I can’t import them?


最後修訂日期: 2025-07-04

Applicable Products

All QNAP NAS models


Problem

“The certificate is illegal” message appears when importing 3rd party SSL certificate to NAS.


Solution

One possible cause of the error is that the private key does not match the certificate. You can save the *.crt and *.pem to NAS shared folder. Use ssh to login NAS, change to the directory that saves the *.crt and *.pem, then use commands below to get their MD5 checksum (replace the certificate.crt and private-key.pem with the actual file names): 

ShellShell
openssl x509 -noout -modulus -in certificate.crt | openssl md5
openssl rsa -noout -modulus -in private-key.pem | openssl md5
Shell

 If the results of the two commands are different, the private key does not match with the certificate. You need to regenerate the certificate and private-key files, or contact the certificate provider to get the correct files.  


這篇文章有幫助嗎?

33% 的人認為有幫助。
謝謝您,我們已經收到您的意見。

請告訴我們如何改進這篇文章:

如果您想提供其他意見,請於下方輸入。

選擇規格

      顯示更多 隱藏更多
      選擇其他偏好的語言:
      back to top