[strongSwan-dev] Python vici library

Sam Johnson sam at 80pct.com
Sun Feb 22 03:58:37 CET 2015

Been testing out the python library. Has been working great. I have been
running into some issues getting it load certs. I think it is just my
misunderstanding of the datatype that the load_conn 'certs' field is

In the swanctl documentation it says a comma separated list of paths to
certifications. In the example configurations on the website
http://www.strongswan.org/uml/testresults/swanctl/ it shows the
certificates as `certs = moonCert.pem`.

No matter what i seem to try for the value (  [ 'myCert.pem'] ,
['/path/to/my/cert.pem/'], 'cert.pem', etc. ) I keep getting the error
message `invalid value for: certs, config discarded`.

Obviously I am passing in the incorrect value to load_conn for `certs`, I
just can't seem to figure out what exactly it is looking for. Any help
would be greatly appreciated.

On Thu, Feb 19, 2015 at 4:15 AM, Martin Willi <martin at strongswan.org> wrote:

> Hi Björn,
> > From what I can tell, there are no python bindings for vici so far. I've
> > just put together a small python library that essentially has the same
> > feature set as the bundled ruby gem.
> That looks awesome, thanks for sharing your work.
> > It is just a start, with only python2 support at this point. I will
> > work on python3 support if there is interest.
> >
> > It definitely needs tests and better documentation, but if interested -
> > have a look;
> Do you prefer to maintain that library in your repository, or do you
> think it would make sense to integrate your work in the strongSwan
> distribution, somehow like the ruby gem?
> The first approach is probably simpler for your work-flow, the latter as
> "officially bundled" library could improve visibility and contributions
> from others.
> Best regards
> Martin
> _______________________________________________
> Dev mailing list
> Dev at lists.strongswan.org
> https://lists.strongswan.org/mailman/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20150221/eb938cd9/attachment.html>

More information about the Dev mailing list