Class CertificateConfigurationExtensions
Inheritance
Namespace: Steeltoe.Common.Certificates
Assembly: Steeltoe.Common.Certificates.dll
Syntax
csharp
public static class CertificateConfigurationExtensions : object
Methods
| Edit this page View SourceAddAppInstanceIdentityCertificate(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.
Declaration
csharp
public static IConfigurationBuilder AddAppInstanceIdentityCertificate(this IConfigurationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration |
builder | The |
Returns
Type | Description |
---|---|
IConfiguration |
The incoming |
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, Nullable<Guid>, Nullable<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.
Declaration
csharp
public static IConfigurationBuilder AddAppInstanceIdentityCertificate(this IConfigurationBuilder builder, Guid? orgId, Guid? spaceId)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration |
builder | The |
System. |
orgId | (Optional) A GUID representing an organization (org), for use with Cloud Foundry certificate-based authorization policy. |
System. |
spaceId | (Optional) A GUID representing a space, for use with Cloud Foundry certificate-based authorization policy. |
Returns
Type | Description |
---|---|
IConfiguration |
The incoming |
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, Nullable<Guid>, Nullable<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.
Declaration
csharp
public static IConfigurationBuilder AddAppInstanceIdentityCertificate(this IConfigurationBuilder builder, TimeProvider timeProvider, Guid? orgId, Guid? spaceId)
Parameters
Type | Name | Description |
---|---|---|
IConfiguration |
builder | The |
Time |
timeProvider | Provides access to the system time. |
System. |
orgId | (Optional) A GUID representing an organization (org), for use with Cloud Foundry certificate-based authorization policy. |
System. |
spaceId | (Optional) A GUID representing a space, for use with Cloud Foundry certificate-based authorization policy. |
Returns
Type | Description |
---|---|
IConfiguration |
The incoming |
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.