IKEv2 Can't Get Private Key

Good afternoon to all.

I have added a small test IKEv2 VPN with Strongswan according to the Wiki.

Everything worked ok the first time with the certificates but then i tried changing my public ip to my cloud name reissued new certificates and i keep getting can’t get private key in the log
section.

I tried returning it to my public ip and i reissued new certificates again but i can’t seem to reconnect and i always get can’t get private key.

Everytime i reissue certificates i upload them to strongswan as new ones.

Any ideas?

Thanks in advance.

This indicates you selected a certificate without private key.

Figured it out.

I had to re enable the server certificate in the identity section.

However i am having trouble using a dns name instead of a public ip.

I am getting fatal error authentication failed.

Any ideas?

Figured that out also.

Had to change IP: to DNS: in the server Certificate