# SSL筆記
###### tags: `SSL`
## 取得免費SSL
https://it-help.tips/en/apply-lets-encrypt-wildcard-certificate-online-in-windows/
https://www.youtube.com/watch?v=CzbZKrYo7HA
The application is free and open-source
https://github.com/sverrirs/GetHttpsF...
See my blog for more information about the process and the tool
https://blog.sverrirs.com/2016/03/win...
Get HTTPS for free! website
https://gethttpsforfree.com/
Let's Encrypt
https://letsencrypt.org/
把步驟5得到的certificate
貼到軟件的step5的上面那一格Signed Certificate裡面,
按下方按鈕,就會在working path(見產生setup分頁)產生兩個.cert檔案
## 安裝SSL
### apache
cert.crt跟cert_chain.crt是由軟件在step5所產生
domain.key是在軟件的step1 and2產生
C:\xampp\apache\conf\extra\httpd-vhosts.conf
```xml!
<VirtualHost _default_:443>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "C:/xampp/htdocs/vue3-project01-api/public"
ServerName vue3-project01-api.twkhjl-test.duckdns.org:443
ErrorLog "logs/vue3-project01-api.twkhjl-test.duckdns.org-error.log"
CustomLog "logs/vue3-project01-api.twkhjl-test.duckdns.org-access.log" common
SSLEngine on
SSLCertificateFile crt/vue3-project01-api/cert.crt
SSLCertificateKeyFile crt/vue3-project01-api/domain.key
SSLCertificateChainFile crt/vue3-project01-api/cert_chain.crt
SSLProtocol TLSv1.2
SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
SSLHonorCipherOrder on
</VirtualHost>
```