Peer_cert permission denied

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Dorian
OpenVpn Newbie
Posts: 6
Joined: Sat Jan 07, 2023 9:53 am

Peer_cert permission denied

Post by Dorian » Sat Jan 07, 2023 10:17 am

Hello,

I tried to use peer_cert tmpfile in a sh script in tls-verify to send a OCSP query but I got an error :

Code: Select all

/etc/openvpn/script.sh: line 13: /etc/openvpn/tempcrt/openvpn_pcf_3fc0ae0d6574d85d.tmp: Permission denied
2023-01-06 23:48:39 x.x.x.x:55208 WARNING: Failed running command (--tls-verify script): external program exited with error status: 1
The directory is as follows :

Code: Select all

drwxrwxrwt 2 root root 4096  7 janv. 11:15 tempcrt
Why is there a permission denied? How to solve this?

Post Reply