-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File "apc-convert.py", line 364, in <module> #1
Comments
The same problem |
Same here |
me too; perhaps becaue my openvpn has no client cert/key?.. |
I have same problem, is there a fix? |
Same Problem...
|
Sorry for the late response. The cause of this error is probably the wrong format of the ca certificate. There are plenty of different ways to store certificates and this script is designed to only handle the specific format SOPHOS used around that time. If you provide me your source files then I can maybe build in an workaround. |
was a solution to this ever posted or found? |
Unfortunately I can not recreate the problem, otherwise I could maybe solve this. |
this is my command line; the result 👍 the OVPN file contains three certs. The CA, the CERT and the KEY. |
thank you, looks like SOPHOS changed the certificate format. I need some time to reproduce this in my lab. |
Any update on this? |
unfortunately I could not reproduce this. Can you generate sample files for me? |
Hey. Sure, what files you want? |
just an apc export of an vpn profile. You can simply create a new connection and delete it after the export. |
I just came across this issue when trying to connect a stock OpenVPN to an XG 18.5.1 in S2S mode. Here is a config you can use to adapt the script. Thanks! I got this working manually, all I had to do after the conversion using the script was to put the -----BEGIN and -----END lines on their own line. The key, cert and ca can be one long line. |
I managed to fix the script so that it'll output a correctly formatted APC file. Unfortunately, I have no chance to really test it. But feel free to give it a try: https://github.com/Phosphenius/apc-convert |
@ca-za Thank you for your work. Unfortunately, I'm having the same error when trying to convert a OVPN to APC as well. I tried with python2 and python3 on linux. The ovpn file I'm trying to convert is provided by surfshark ( vpn provider). |
When i run the script i get the below error:
Traceback (most recent call last):
File "apc-convert.py", line 364, in
apc.ca = ovpn.ca
File "apc-convert.py", line 237, in ca
if not value.startswith(CERT_START): raise ValueError()
ValueError
The text was updated successfully, but these errors were encountered: