IPSEC - unable to get local issuer certificate

I`m trying to setup an IPSEC Road Warrior setup using IKEv2 with RSA authentication according to https://wiki.mikrotik.com/wiki/Manual:IP/IPsec#Ikev2_Server_Setup. However every time I try to setup a tunnel (no matter from MT or Windows 10) I get the following errors:

unable to get local issuer certificate at depth: 0 SubjectName: /CN=rw1-client
can’t verify peer’s certificate from store

How can I fix that?

Apologies for resurrecting an old thread, but I’m having the exact same problem setting up IPsec between RouterOS and a Linux box with strongswan, following the steps at that same link.

unable to get local issuer certificate(20) at depth:0 cert:rw-client1
can’t verify peer’s certificate from store

Any ideas how to fix this?

Nevermind all that, I had screwed up my certificates. The linux box was using a wrong one.

So if anyone’s here from google, do make sure it’s not that.