I’ve followed the instructions step by step and all seems well, but when I try to run the script I get:
I verified that /bin/bash does exist. Initially I thought it was a line return issue as I copied the text from the page into notepad, saved it as the openvpncmd.sh, scp’d it to IPFire, changed the permissions, then tried to run it, I got the error, so I deleted the first line, and hand typed it again, and it produces the same result.
I am not talented at scripting so I can’t see where the ^M is coming in (or why) right after /bin/bash. I must be missing something obvious, any thoughts?
I am too was never able to get the ios device to work with openvpn following wiki instruction. I have found another way to make openvpn to work with ios and it may not be the best but it is for person use only. From Ipfire download the client information and test it on windows pc to confirm your file is good. Then follow the instruction below to convert the .p12 file to certificate.cer file.
Prepare the file on ubuntu
convert .p12 into something we can import into Openvpn. – navigate to the folder file where your .p12 file locate and right click and select Open in Terminal