Consider refactoring the block to a separate method which populates CertificateThumbprint and ThumbprintAlgorithm on ExtensionConfigurationInput object.