问题原文
原帖链接 · Vitalik Jimbei · CC BY-SA 3.0
I am using a wildcard certificate.
I have managed to setup ikev2 protocol, applied my own certificate but it won't work for subdomains.
Is there any workaround for this or the wildcard should be of a certain format ?
已采纳解答
原帖链接 · deltamind106 · CC BY-SA 4.0
Perhaps in 2017, Strongswan did not support wildcard certificates, but they definitely work today in 2021. For anyone else running into this question, the solution is to change the configuration of "leftid" in the /etc/ipsec.conf configuration file. The relevant fields are:
conn ikev2-vpn
left=%any
leftid=@*.example.com
leftcert=star_example_com.crt
leftsendcert=always
leftsubnet=0.0.0.0/0
Note that the "leftid" configuration setting must use the wildcard name, as it appears in the wildcard certificate.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
