---
name: "TSSslServerCertUpdate"
section: "3ts"
platform: "linux"
package: "trafficserver-dev"
version: "9.2.5+ds-0+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/TSSslServerCertUpdate"
---

# TSSslServerCertUpdate(3ts)

traffic Server TLS server cert update

## NAME

TSSslServerCertUpdate - traffic Server TLS server cert update

## SYNOPSIS

```
#include <ts/ts.h>
```

- ***TSReturnCode* TSSslServerCertUpdate(const char \*cert\_path, const char \*key\_path)**

  ## DESCRIPTION

*TSSslServerCertUpdate()* updates existing server certificates configured in *ssl\_multicert.config* based on the common name in *cert\_path*. if *key\_path* is set to nullptr, the function will use *cert\_path* for both certificate and private key. *TSSslServerCertUpdate()* returns *TS\_SUCCESS* only if there exists such a mapping, *cert\_path* is a valid cert, and the context is updated to use that cert.

## COPYRIGHT

2026, dev@trafficserver.apache.org
