Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F340445
990-misc_fixes.patch
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
wsapplegate
May 20 2019, 8:20 AM
2019-05-20 08:20:02 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
990-misc_fixes.patch
View Options
diff --git a/lib/Vyatta/OpenVPN/Config.pm b/lib/Vyatta/OpenVPN/Config.pm
index b2537fe..f8da4fb 100644
--- a/lib/Vyatta/OpenVPN/Config.pm
+++ b/lib/Vyatta/OpenVPN/Config.pm
@@ -747,13 +747,18 @@ sub get_command {
if( !($client && $password_auth_def) ) {
return (undef, 'Must specify "tls cert-file"')
if (!defined($self->{_tls_cert}));
+ return (undef, 'Must specify "tls key-file"')
+ if (!defined($self->{_tls_key}));
+ }
+
+ if (defined($self->{_tls_cert})) {
$hdrs = checkHeader("-----BEGIN CERTIFICATE-----", $self->{_tls_cert});
return (undef, "Specified cert-file \"$self->{_tls_cert}\" is not valid")
if ($hdrs != 0);
$cmd .= " --cert $self->{_tls_cert}";
+ }
- return (undef, 'Must specify "tls key-file"')
- if (!defined($self->{_tls_key}));
+ if (defined($self->{_tls_key})) {
$hdrs = checkHeader("-----BEGIN (?:RSA )?PRIVATE KEY-----", $self->{_tls_key});
return (undef, "Specified key-file \"$self->{_tls_key}\" is not valid")
if ($hdrs != 0);
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6c/38/e48e5177b436c18fbb072e315753
Default Alt Text
990-misc_fixes.patch (1 KB)
Attached To
Mode
T1388: OpenVPN client connections with password and certificate authentication don't work
Attached
Detach File
Event Timeline
Log In to Comment