Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FYI: openconnect upgrade, failed to load certs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
uraes
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2002
Posts: 120
Location: Estonia

PostPosted: Mon Sep 21, 2015 8:47 am    Post subject: FYI: openconnect upgrade, failed to load certs Reply with quote

Hi,

Just lost few hours of vpn-usage-time to figuring out, what happened after openconnect got upgraded to 7.06-r1 ( from 4.08 )
(note, downgrading to =net-misc/openconnect-4.08 still works well)
so maybe this helps others also from losing time

first run: ( note, same cert is used as with 4.08 )
Code:

POST https://some.vpn.server/
Attempting to connect to server xxxx.yy.zz.www:443
Failed to load PKCS#1 private key: ASN1 parser: Error in DER parsing.
Loading certificate failed. Aborting.
Failed to open HTTPS connection to some.vpn.server
Failed to obtain WebVPN cookie


second run, after converting PEM to DER ( note: openssl shows der certificate correctly, so no damage to cert )
Code:

POST https://some.vpn.server/
Attempting to connect to server xxxx.yy.zz.www:443
Loading certificate failed: No certificate found in file
Loading certificate failed. Aborting.
Failed to open HTTPS connection to some.vpn.server
Failed to obtain WebVPN cookie


solution
as info shows
> [ebuild U ] net-misc/openconnect-7.06-r1:0/5::gentoo [4.08:0/2::gentoo] USE="gnutls* ...

I just disabled gnutls in /etc/portage/package.use/monolithic :
Code:

net-misc/openconnect -gnutls

and emerged latest openconnect. Everything is ok now.

maybe someone knows some better way, how gnutls needs certificate to be converted so it would eat it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum