rustydust / ovpn-to-apc Goto Github PK
View Code? Open in Web Editor NEWConvert OpenVPN profiles to an APC file that can be imported into a Sophos/Astaro UTM
Convert OpenVPN profiles to an APC file that can be imported into a Sophos/Astaro UTM
So I've created an APC file with the script which imports into Sophos UTM 9.3 ok but in the UTM's log I can see when it's trying to connect that it's getting this error:
Options error: No closing quotation (") in /etc/openvpn/client/REF_SslCliAzure2/config:9
When I open that file, it is indeed missing a quote:
tls-remote "tls-auth /etc/ta_LuWlMsqd.key
Is this an issue with the script or is it something I've entered wrong along the way?
ovpn-to-apc.sh: 245: [: : unexpected operator and cat: : No such file or directory
Seems odd as cat definitely is there. Debian machine. Will try CentOS.
Any thoughts?
Edit: definitely no better on CentOS
ovpn-to-apc.sh: line 285: bc: command not found
ovpn-to-apc.sh: line 287: printf: missing hex digit for \x
OSX next!
Edit 2: Made some progress, down to:
ovpn-to-apc.sh: 245: [: unexpected operator
ovpn-to-apc.sh: 113: ovpn-to-apc.sh: Bad substitution
When trying to upload the converted apc file to sophos utm 9 , its thorwing and error saying Configuration package is corrupt.
Please advise.
i have a working configuration (tried with Tunnelblick-client) inclusive all certificates and keys. now i tried to convert my ovpn config to apc to establish a connection with my utm and now getting this issue...
can anyone tell me whats wrong, or why it is not working?
2016:01:19-22:26:58 UTM openvpn[2222]: TLS: Initial packet from [AF_INET]x.x.x.x:1194 (via [AF_INET]x.x.x.x%eth1), sid=d865c36c 98e7b4b3
2016:01:19-22:26:58 UTM openvpn[2222]: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2016:01:19-22:26:58 UTM openvpn[2222]: VERIFY OK: depth=1, C=DE, ST=BY, L=Muenchen, O=LCServer, OU=changeme, CN=changeme, name=changeme, [email protected]
2016:01:19-22:26:58 UTM openvpn[2222]: VERIFY X509NAME ERROR: C=DE, ST=BY, L=Muenchen, O=LCServer, OU=changeme, CN=server, name=changeme, [email protected], must be changeme
2016:01:19-22:26:58 UTM openvpn[2222]: TLS_ERROR: BIO read tls_read_plaintext error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2016:01:19-22:26:58 UTM openvpn[2222]: TLS Error: TLS object -> incoming plaintext read error
2016:01:19-22:26:58 UTM openvpn[2222]: TLS Error: TLS handshake failed
on the commandline its seems to be valid
openssl verify -CAfile ca.crt client.crt
client.crt: OK
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.