# ServerCertificateConfigProperty

The server certificate configuration.

For more information, see [Configurable endpoints](https://docs.aws.amazon.com//iot/latest/developerguide/iot-custom-endpoints-configurable.html) from the AWS IoT Core Developer Guide.

- Source: Generated at build time
- Type last changed: v2.172.0 · 7 Dec 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const serverCertificateConfigProperty: iot.CfnDomainConfiguration.ServerCertificateConfigProperty = {
  enableOcspCheck: false,
  ocspAuthorizedResponderArn: 'ocspAuthorizedResponderArn',
  ocspLambdaArn: 'ocspLambdaArn',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot

server_certificate_config_property = iot.CfnDomainConfiguration.ServerCertificateConfigProperty(
    enable_ocsp_check=False,
    ocsp_authorized_responder_arn="ocspAuthorizedResponderArn",
    ocsp_lambda_arn="ocspLambdaArn"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;

ServerCertificateConfigProperty serverCertificateConfigProperty = ServerCertificateConfigProperty.builder()
        .enableOcspCheck(false)
        .ocspAuthorizedResponderArn("ocspAuthorizedResponderArn")
        .ocspLambdaArn("ocspLambdaArn")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;

var serverCertificateConfigProperty = new ServerCertificateConfigProperty {
    EnableOcspCheck = false,
    OcspAuthorizedResponderArn = "ocspAuthorizedResponderArn",
    OcspLambdaArn = "ocspLambdaArn"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

serverCertificateConfigProperty := &ServerCertificateConfigProperty{
	EnableOcspCheck: jsii.Boolean(false),
	OcspAuthorizedResponderArn: jsii.String("ocspAuthorizedResponderArn"),
	OcspLambdaArn: jsii.String("ocspLambdaArn"),
}
```

## Properties

- `enableOcspCheck`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — A Boolean value that indicates whether Online Certificate Status Protocol (OCSP) server certificate check is enabled or not.

  For more information, see [Configurable endpoints](https://docs.aws.amazon.com//iot/latest/developerguide/iot-custom-endpoints-configurable.html) from the AWS IoT Core Developer Guide.

- `ocspAuthorizedResponderArn`: string — The Amazon Resource Name (ARN) for an X.509 certificate stored in ACM. If provided, AWS IoT Core will use this certificate to validate the signature of the received OCSP response. The OCSP responder must sign responses using either this authorized responder certificate or the issuing certificate, depending on whether the ARN is provided or not. The certificate must be in the same account and region as the domain configuration.

- `ocspLambdaArn`: string — The Amazon Resource Name (ARN) for a Lambda function that acts as a Request for Comments (RFC) 6960-compliant Online Certificate Status Protocol (OCSP) responder, supporting basic OCSP responses.

  The Lambda function accepts a base64-encoding of the OCSP request in the Distinguished Encoding Rules (DER) format. The Lambda function's response is also a base64-encoded OCSP response in the DER format. The response size must not exceed 4 kilobytes (KiB). The Lambda function must be in the same account and region as the domain configuration.
