Skip to content

Commit

Permalink
fix add certificate issue microsoft/service-fabric-issues#932
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfredo Santamaria Gomez committed Oct 22, 2018
1 parent 16ac3df commit a968fc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
## Current Release
* Fix add certificate to Linux Vmss.

* Fix `Add-AzureRmServiceFabricClusterCertificate` to display exception correctly (Azure/service-fabric-issues#1054).
* Fix `Add-AzureRmServiceFabricClusterCertificate`
- Using correct thumbprint from new certificate (Azure/service-fabric-issues#932).
- Display exception correctly (Azure/service-fabric-issues#1054).

* Fix `Update-AzureRmServiceFabricDurability` to update cluster configuration before starting Vmss CreateOrUpdate operation.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,11 @@ private string GetThumbprintFromSecret(string secretUrl)
jsonBlob.Password,
X509KeyStorageFlags.Exportable);

return certCollection[0].Thumbprint;
var lastCert = certCollection.Count > 0 ? certCollection[certCollection.Count - 1] : null;
if (lastCert?.Thumbprint != null)
{
return lastCert.Thumbprint;
}
}
}
}
Expand Down

0 comments on commit a968fc4

Please sign in to comment.