---
title: "setTls"
sidebar_label: "setTls"
description: "Kotlin binding reference: setTls."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[HttpServer](index.md)/[setTls](setTls.md)

# setTls

[common]\
fun [setTls](setTls.md)(certPath: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), keyPath: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html))

Serve HTTPS with this certificate and private key (PEM file paths).