Prevents Anaconda from verifying the ssl certificate for all https
connections with an exception of the additional repos (where --noverifyssl
can be set per repo).
For instance, this allows downloading kickstart specified as
ks=https://... where the server is using a self-signed certificate.
diff --git a/loader/loader.c b/loader/loader.c
index 48359cc..aa26605 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1108,6 +1108,8 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData,
else if (!strncasecmp(argv[i], "proxy=", 6))
splitProxyParam(argv[i]+6, &loaderData->proxyUser,
&loaderData->proxyPassword, &loaderData->proxy);
+ else if (!strncasecmp(argv[i], "noverifyssl", 11))
+ flags |= LOADER_FLAGS_NOVERIFYSSL;
else if (numExtraArgs < (MAX_EXTRA_ARGS - 1)) {
/* go through and append args we just want to pass on to */
/* the anaconda script, but don't want to represent as a */
@@ -2454,7 +2456,7 @@ int main(int argc, char ** argv) {
}
}
- if (loaderData.instRepo_noverifyssl) {
+ if (loaderData.instRepo_noverifyssl || FL_NOVERIFYSSL(flags)) {
*argptr++ = "--noverifyssl";
}
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
}
-
- if (ui->noverifyssl) {
+
+ if (ui->noverifyssl || FL_NOVERIFYSSL(flags)) {
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
}
--
1.7.6
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
07-27-2011, 03:57 PM
Chris Lumens
ssl: 'noverifyssl' kernel boot argument.
> Prevents Anaconda from verifying the ssl certificate for all https
> connections with an exception of the additional repos (where --noverifyssl
> can be set per repo).
>
> For instance, this allows downloading kickstart specified as
> ks=https://... where the server is using a self-signed certificate.
Looks good to me.
- Chris
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list