[strongSwan-dev] Python vici library

Björn Schuberg bjorn.schuberg at gmail.com
Sun Feb 22 09:25:18 CET 2015


Hi there!

Nice to hear that your experience has  mostly been good so far. I will try
to reproduce the issue you are describing once I get back to a computer in
the middle of next week.


Cheers,
Björn

söndag 22 februari 2015 skrev Sam Johnson <sam at 80pct.com>:

> 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
> expecting.
>
> 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
> <javascript:_e(%7B%7D,'cvml','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
>> <javascript:_e(%7B%7D,'cvml','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/20150222/519a8f0d/attachment.html>


More information about the Dev mailing list