Skip to content

Commit fc815c3

Browse files
committed
fix: hardcode GetProductIds so doc tool can populate product_ids via reflection
1 parent dff3762 commit fc815c3

1 file changed

Lines changed: 10 additions & 22 deletions

File tree

CERTInext/CERTInextCAPlugin.cs

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -137,28 +137,16 @@ public Dictionary<string, PropertyConfigInfo> GetTemplateParameterAnnotations()
137137
/// <inheritdoc/>
138138
public List<string> GetProductIds()
139139
{
140-
_logger.MethodEntry(LogLevel.Trace);
141-
142-
try
143-
{
144-
var profiles = _client.GetProfilesAsync().GetAwaiter().GetResult();
145-
var ids = profiles
146-
.Where(p => p.Active)
147-
.Select(p => p.Name ?? p.Id)
148-
.ToList();
149-
150-
_logger.LogInformation("Retrieved {Count} active certificate profiles from CERTInext.", ids.Count);
151-
return ids;
152-
}
153-
catch (Exception ex)
154-
{
155-
_logger.LogError(ex, "Unable to retrieve certificate profiles from CERTInext.");
156-
return new List<string>();
157-
}
158-
finally
159-
{
160-
_logger.MethodExit(LogLevel.Trace);
161-
}
140+
return new List<string>
141+
{
142+
Constants.Products.DvSsl,
143+
Constants.Products.DvSslWildcard,
144+
Constants.Products.DvSslUcc,
145+
Constants.Products.OvSsl,
146+
Constants.Products.OvSslWildcard,
147+
Constants.Products.OvSslUcc,
148+
Constants.Products.EvSsl,
149+
};
162150
}
163151

164152
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)