Can´t delete OpenVPN Client config

dnilgreb

Contributor
Joined
Mar 29, 2016
Messages
168
I have a few TruNAS servers running an OpenVPN client config. On one of them, I now want to remove this. That seems to be difficult.

I can not delete the certificate and/or the CA, since they are in use. I also cannot deselect the CA (there is no other CA to select, and no "empty" row in the dropdown) in the service. And because of that, I can´t deselect the certificate either, since the freenas_default certificate doesn´t match my imported CA.

Does anyone know how to accomplish this?
 

tinsukE

Cadet
Joined
Jul 15, 2016
Messages
5
I posted a solution for clearing the OpenVPN server config, but you can easily adapt it for client config:
 

tinsukE

Cadet
Joined
Jul 15, 2016
Messages
5
While I believe this might work, I think skipping TrueNAS' logic might bring unforeseen consequences.

The method I exemplified does skip the Web GUI, but it is using the same methods that the Web GUI uses itself, so if there were some logic to do some extra check/modification due to clearing those certificates, those extra operations would still take place.

Can't say the same for editing database files directly.
 
Top