1.在檢查網址的時候發現,憑證不夠完整,所以Open Graph的設定無法顯示
2.經過SSL憑證測試後發現certificate chain is incomplete.
3.嘗試看了幾篇文章的解法
(3-1)https://victorlava.com/how-to-fix-curl-60-ssl_cacert-cant-validate-ssl-certificate/
(3-2)https://shazi.info/openssl-%E6%AA%A2%E6%B8%AC-ssl-%E7%9A%84%E6%86%91%E8%AD%89%E4%B8%B2%E9%8D%8A-certificate-chain/
(3-3)https://medium.com/@superseb/get-your-certificate-chain-right-4b117a9c0fce
4.但是有看沒有懂,因為登入購買的Plesk後台也不太清楚如何操作,有看到Apache和nginx的設定
5.但是找了網頁目錄和所有在目錄中的檔案,也沒有發現如3-1到3-3應該要有的檔案,像是" .crt" ".key" ".pem" "etc/apache2.conf" "/etc/httpd/nginx.conf" 等等之類的檔案
6.目前想到的方法是直接自己把Linux系統學一遍,把這些有缺的東西都補上去,是否就能夠解決這個問題呢? (我只會網頁前端HTML5/CSS/JS這部分,對伺服器運作的概念並不熟悉)
會參考這個30天的教學→→https://ithelp.ithome.com.tw/users/20111994/ironman/1803
最後謝謝各位看過小弟的發問,希望有緣人能指引該努力的方向,或是指點我該往哪個方向走,去解決這個問題。
SSL/TLS證書->高級設定->選擇你的證書
證書:
-----BEGIN CERTIFICATE-----
MIIFvTCCBKWgAwIBAgIRANrFW3aWNHfBjDw7BtUay9YwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNV
BAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGDAW
BgNVBAoTD1NlY3RpZ28gTGltaXRlZDE3MDUGA1UEAxMuU2VjdGlnbyBSU0EgRG9tYWluIFZhbGlk
YXRpb24gU2VjdXJlIFNlcnZlciBDQTAeFw0yMDA2MDgwMDAwMDBaFw0yMTA2MDgyMzU5NTlaMBgx
FjAUBgNVBAMTDTEwOWhvc3RlbC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC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aHR0cDovL29jc3AuY29tb2RvY2EuY29tMA0G
CSqGSIb3DQEBDAUAA4IBAQAYh1HcdCE9nIrgJ7cz0C7M7PDmy14R3iJvm3WOnnL+5Nb+qh+cli3v
A0p+rvSNb3I8QzvAP+u431yqqcau8vzY7qN7Q/aGNnwU4M309z/+3ri0ivCRlv79Q2R+/czSAaF9
ffgZGclCKxO/WIu6pKJmBHaIkU4MiRTOok3JMrO66BQavHHxW/BBC5gACiIDEOUMsfnNkjcZ7Tvx
5Dq2+UUTJnWvu6rvP3t3O9LEApE9GQDTF1w52z97GA1FzZOFli9d31kWTz9RvdVFGD/tSo7oBmF0
Ixa1DVBzJ0RHfxBdiSprhTEUxOipakyAvGp4z7h/jnZymQyd/teRCBaho1+V
-----END CERTIFICATE-----
貼上去就好了;然後你的問題真的跟Linux沒啥關係,比起PKI Linux更喜歡用GPG…