diff --git a/CHANGELOG.md b/CHANGELOG.md index f16f424..8355964 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +- 1.3.2 + - Fixed Sans Being passed through Extensions Data, Google does not like this. +- 1.3.1 - 1.3.0 - SaaS containerization changes with Google Credentials - 1.2.2 diff --git a/GCPCAS/Client/CreateCertificateRequestBuilder.cs b/GCPCAS/Client/CreateCertificateRequestBuilder.cs index 86b42b8..22f587f 100644 --- a/GCPCAS/Client/CreateCertificateRequestBuilder.cs +++ b/GCPCAS/Client/CreateCertificateRequestBuilder.cs @@ -1,5 +1,5 @@ /* -Copyright © 2025 Keyfactor +Copyright � 2025 Keyfactor Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -85,12 +85,14 @@ public ICreateCertificateRequestBuilder WithEnrollmentProductInfo(EnrollmentProd string base64Value = param.Value; _logger.LogTrace($"Loggin oid and value {oid} {base64Value}"); - - var extension = CreateX509Extension(oid, base64Value); - if (extension != null) + if (oid != "2.5.29.17") //can't send Sans as an extension to google, they do not like this and you will get an error { - _logger.LogTrace($"Adding Extension"); - _additionalExtensions.Add(extension); + var extension = CreateX509Extension(oid, base64Value); + if (extension != null) + { + _logger.LogTrace($"Adding Extension"); + _additionalExtensions.Add(extension); + } } } }