Table of Contents

Class CertificateConfigurationExtensions

Namespace
Steeltoe.Common.Certificates
Assembly
Steeltoe.Common.Certificates.dll
public static class CertificateConfigurationExtensions
Inheritance
CertificateConfigurationExtensions
Inherited Members

Methods

AddAppInstanceIdentityCertificate(IConfigurationBuilder)

Adds PEM certificate files representing application identity to the application configuration. When running outside of Cloud Foundry-based platforms, this method will create certificates resembling those found on the platform.

public static IConfigurationBuilder AddAppInstanceIdentityCertificate(this IConfigurationBuilder builder)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.

Remarks

When running outside of Cloud Foundry, the CA and Intermediate certificates will be created in a directory above the current project, so that they can be shared between different projects in the same solution.

AddAppInstanceIdentityCertificate(IConfigurationBuilder, Guid?, Guid?)

Adds PEM certificate files representing application identity to the application configuration. When running outside of Cloud Foundry-based platforms, this method will create certificates resembling those found on the platform.

public static IConfigurationBuilder AddAppInstanceIdentityCertificate(this IConfigurationBuilder builder, Guid? orgId, Guid? spaceId)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

orgId Guid?

(Optional) A GUID representing an organization (org), for use with Cloud Foundry certificate-based authorization policy.

spaceId Guid?

(Optional) A GUID representing a space, for use with Cloud Foundry certificate-based authorization policy.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.

Remarks

When running outside of Cloud Foundry, the CA and Intermediate certificates will be created in a directory above the current project, so that they can be shared between different projects in the same solution.

AddAppInstanceIdentityCertificate(IConfigurationBuilder, TimeProvider, Guid?, Guid?)

Adds PEM certificate files representing application identity to the application configuration. When running outside of Cloud Foundry-based platforms, this method will create certificates resembling those found on the platform.

public static IConfigurationBuilder AddAppInstanceIdentityCertificate(this IConfigurationBuilder builder, TimeProvider timeProvider, Guid? orgId, Guid? spaceId)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

timeProvider TimeProvider

Provides access to the system time.

orgId Guid?

(Optional) A GUID representing an organization (org), for use with Cloud Foundry certificate-based authorization policy.

spaceId Guid?

(Optional) A GUID representing a space, for use with Cloud Foundry certificate-based authorization policy.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.

Remarks

When running outside of Cloud Foundry, the CA and Intermediate certificates will be created in a directory above the current project, so that they can be shared between different projects in the same solution.