# Enable DTLS-SRTP in janus-gateway server with sip plugin

**URL:** <https://janus.discourse.group/t/enable-dtls-srtp-in-janus-gateway-server-with-sip-plugin/1507>\
**Category:** General\
**Tags:** sip\
**Created:** [March 1, 2025, 6:21am UTC](https://janus.discourse.group/t/enable-dtls-srtp-in-janus-gateway-server-with-sip-plugin/1507 "2025-03-01T06:21:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardo\_kaka07](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/ricardo_kaka07/32/405_2.png) [@ricardo\_kaka07](https://janus.discourse.group/u/ricardo_kaka07)\
**Post date:** [March 1, 2025, 6:21am UTC](https://janus.discourse.group/t/enable-dtls-srtp-in-janus-gateway-server-with-sip-plugin/1507/1 "2025-03-01T06:21:49Z")

</div>

I want to enable dtls-srtp in janus-server with sip plugin.  
I had set the self-assigned to true here.

```auto

# Certificate and key to use for DTLS (and passphrase if needed). If missing,
# Janus will autogenerate a self-signed certificate to use. Notice that
# self-signed certificates are fine for the purpose of WebRTC DTLS
# connectivity, for the time being, at least until Identity Providers
# are standardized and implemented in browsers. If for some reason you
# want to enforce the DTLS stack in Janus to enforce valid certificates
# from peers, though, you can do that setting 'dtls_accept_selfsigned' to
# 'false' below: DO NOT TOUCH THAT IF YOU DO NOT KNOW WHAT YOU'RE DOING!
# You can also configure the DTLS ciphers to offer: the default if not
# set is "DEFAULT:!NULL:!aNULL:!SHA256:!SHA384:!aECDH:!AESGCM+AES256:!aPSK"
# Finally, by default NIST P-256 certificates are generated (see #1997),
but RSA generation is still supported if you set 'rsa_private_key' to 'true'.
certificates: {
	#cert_pem = "/path/to/certificate.pem"
	#cert_key = "/path/to/key.pem"
	#cert_pwd = "secretpassphrase"
	dtls_accept_selfsigned = true
	#dtls_ciphers = "your-desired-openssl-ciphers"
	#rsa_private_key = false
}

```

But when I make calls to FreeSwitch it is still going as RTP.  
However if I enable sdes-srtp in the call invite it is negotiating sdes-srtp.

But I want DTLS-SRTP to be negotiated between janus and freeswitch.  
Do I need to generate self signed certificates and keep it in some folder and add those paths? But by reading the comments it seems janus auto generates it.

---

<div class="post-metadata">

**Author:** ![lorenzo](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/lorenzo/32/425_2.png) [@lorenzo](https://janus.discourse.group/u/lorenzo)\
**Post date:** [March 3, 2025, 9:52am UTC](https://janus.discourse.group/t/enable-dtls-srtp-in-janus-gateway-server-with-sip-plugin/1507/2 "2025-03-03T09:52:15Z")

</div>

> [@ricardo\_kaka07](#):
>
> I want to enable dtls-srtp in janus-server with sip plugin.

DTLS is only supported on the WebRTC side, not SIP. On the SIP side we only do SDES-SRTP.

---

<div class="post-metadata">

**Author:** ![ricardo\_kaka07](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/ricardo_kaka07/32/405_2.png) [@ricardo\_kaka07](https://janus.discourse.group/u/ricardo_kaka07)\
**Post date:** [March 3, 2025, 10:25am UTC](https://janus.discourse.group/t/enable-dtls-srtp-in-janus-gateway-server-with-sip-plugin/1507/3 "2025-03-03T10:25:49Z")

</div>

Okay, got it. Thanks for the response.
