diff --git a/src/sslutils/proxy.c b/src/sslutils/proxy.c index 8a1e2098..da4d7823 100644 --- a/src/sslutils/proxy.c +++ b/src/sslutils/proxy.c @@ -353,9 +353,10 @@ struct VOMSProxy *VOMS_MakeProxy(struct VOMSProxyArguments *args, int *warning, } } - /* authority key identifier and subject key identifier extension */ + /* authority key identifier and subject key identifier extension + (certificates only, not proxies) */ - { + if (args->proxyversion == 0) { X509V3_CTX ctx; X509V3_set_ctx(&ctx, (args->selfsigned ? NULL : args->cert), NULL, req, NULL, 0);