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
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
Returns
- IConfigurationBuilder
The incoming
builderso 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
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
orgIdGuid?(Optional) A GUID representing an organization (org), for use with Cloud Foundry certificate-based authorization policy.
spaceIdGuid?(Optional) A GUID representing a space, for use with Cloud Foundry certificate-based authorization policy.
Returns
- IConfigurationBuilder
The incoming
builderso 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
builderIConfigurationBuilderThe IConfigurationBuilder to add configuration to.
timeProviderTimeProviderProvides access to the system time.
orgIdGuid?(Optional) A GUID representing an organization (org), for use with Cloud Foundry certificate-based authorization policy.
spaceIdGuid?(Optional) A GUID representing a space, for use with Cloud Foundry certificate-based authorization policy.
Returns
- IConfigurationBuilder
The incoming
builderso 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.