OpenVox Document Center OpenVox Document Center
  • Home 
  • Products 
  • Solutions 
  • Resources 
    • Document Center 
    • Datasheets 
    • Firmwares 
    • Videos 
  • Partners 
  • Blog 
  • Company 
OpenVox Document Center OpenVox Document Center
OpenVox Document Center
  • Home 
  • Products 
  • Solutions 
  • Resources 
    • Document Center 
    • Datasheets 
    • Firmwares 
    • Videos 
  • Partners 
  • Blog 
  • Company 

Analog Gateway

  • folder icon closed folder iconUser Manual
    • iAG200/400 Series Analog Gateway User Manual
    • iAG800 V2 Series Analog Gateway User Manual
    • iAG801 Series Analog Gateway User Manual
    • MAG Series Analog Gateway User Manual
    • VoxStack Series Analog Gateway
    • VS-GWM801 Series Analog Gateway
  • folder icon closed folder iconApplication Notes
    • OpenVox TR069 Technote
    • iAG200/400 Analog Gateway Quick User Guide
    • iAG800 V2 Analog Gateway Quick User Guide
    • MAG1000 Analog Gateway Quick User Guide
  • folder icon closed folder iconFAQ
    • Comparison Table of Functional Differences between New and Old Architecture of Analog Gateway
    • Frequently Asked Questions
  • folder icon closed folder iconFunctions Guide
    • Analog Gateway FXO connect with Freepbx15
    • Analog Gateway FXO connect with asterisk16.15.1
    • Analog Gateway FXO connect with OpenVox UC
    • Analog Gateway FXO connect with Issabel
    • Analog Gateway FXS connect with 3CX
    • Analog Gateway FXO connect with 3CX
    • Network disconnection escape
    • PEER-PEER GATEWAY SCENARIO
    • SNMP Guide on Analog gateway
    • RJ21 Cable Instruction(MAG1000/MAG1100)
    • Analog Gateway mutiple FXS blinding single SIP account
    • Analog Gateway FXS configure TLS and SRTP with Openvox UC
    • Analog Gateway FXS configure TLS and SRTP with Grandstream UCM6202
    • Analog Gateway FXS configure TLS and SRTP with Yeastar S20 VoIP PBX
    • Auto Provision Guide
loading
Popular Searches
  • Array
  • Array
  • Array
  1. Home
  2. Docs
  3. Analog Gateway
  4. Functions Guide
  5. Analog Gateway FXS configure TLS and SRTP with Yeastar S20 VoIP PBX
Updated on June 14, 2023

Analog Gateway

  • folder icon closed folder iconUser Manual
    • iAG200/400 Series Analog Gateway User Manual
    • iAG800 V2 Series Analog Gateway User Manual
    • iAG801 Series Analog Gateway User Manual
    • MAG Series Analog Gateway User Manual
    • VoxStack Series Analog Gateway
    • VS-GWM801 Series Analog Gateway
  • folder icon closed folder iconApplication Notes
    • OpenVox TR069 Technote
    • iAG200/400 Analog Gateway Quick User Guide
    • iAG800 V2 Analog Gateway Quick User Guide
    • MAG1000 Analog Gateway Quick User Guide
  • folder icon closed folder iconFAQ
    • Comparison Table of Functional Differences between New and Old Architecture of Analog Gateway
    • Frequently Asked Questions
  • folder icon closed folder iconFunctions Guide
    • Analog Gateway FXO connect with Freepbx15
    • Analog Gateway FXO connect with asterisk16.15.1
    • Analog Gateway FXO connect with OpenVox UC
    • Analog Gateway FXO connect with Issabel
    • Analog Gateway FXS connect with 3CX
    • Analog Gateway FXO connect with 3CX
    • Network disconnection escape
    • PEER-PEER GATEWAY SCENARIO
    • SNMP Guide on Analog gateway
    • RJ21 Cable Instruction(MAG1000/MAG1100)
    • Analog Gateway mutiple FXS blinding single SIP account
    • Analog Gateway FXS configure TLS and SRTP with Openvox UC
    • Analog Gateway FXS configure TLS and SRTP with Grandstream UCM6202
    • Analog Gateway FXS configure TLS and SRTP with Yeastar S20 VoIP PBX
    • Auto Provision Guide

Analog Gateway FXS configure TLS and SRTP with Yeastar S20 VoIP PBX

Estimated reading: 4 minutes 429 views

Pasted 32

TLS (Transport Layer Security) is a network security protocol used to encrypt and secure data transmission over the internet. It establishes an encrypted channel between two communicating devices (e.g. server and client) to ensure that transmitted data is not intercepted or tampered with.

This article provides an example of configuring TLS between an Analog Gateway FXS and Yeastar S20. After configuration, when phone 1001 on the Analog Gateway dials phone 1002 on Yeastar S20, the data will be encrypted using TLS.

Note: The configuration example in this article uses a self-signed TLS certificate, which has relatively weak security. It is not recommended for use in formal production environments.

Step 1.Create extension 1001 and 1002 on Yeastar S20

Pasted 33

Pasted 34

If you want use SRTP to encrypt the call, enable the SRTP.

Pasted 43

Enable the TLS on Yeastar S20

Pasted 35

Step 2. Use OpenSSL tool to generate server certificate and client certificates for 1001 and 1002.

To generate certificates, we need to use the openssl tool, including a root certificate and user certificates. Before the specific steps of generating certificates, we need to know several file formats related to certificates. All these formats belong to the PKCS (The Public-Key Cryptography Standards) standard:

.key file: Private key file, usually using RSA algorithm, the private key needs to be saved by yourself and does not need to be submitted to the CA organization.

.csr file: Certificate Signing Request (CSR) file, containing public key information. The CSR file is generated using your own private key.

.crt file: CA-certified certificate file, “certificate” abbreviation.

.crl file: Certificate Revocation List (CRL) file.

.pem file: A certificate format used for exporting and importing. This file is actually a combination of the .crt and .key files, similar to using .pfx on Windows, but different in that .pem uses base64 characters for storage while .pfx uses binary storage.

Steps to generate a CA root certificate:

1.Generate the CA private key (.key)

2.Generate a Certificate Signing Request (CSR) for the CA (.csr)

3.Self-sign the CSR to obtain the root certificate (.crt)

# Generate CA private key 
openssl genrsa -out ca.key 2048 

# Generate CSR 
openssl req -new -key ca.key -out ca.csr

# Generate Self Signed certificate
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt

Usually, for services deployed on an internal network, self-signed certificates are used. Only when deploying public-facing services will certificates be requested from a CA.

The steps to generate a server-side certificate are as follows:

1.Generate a private key (.key).

2.Generate a certificate signing request (.csr).

3.Use the CA root certificate to sign the certificate and obtain a signed certificate (.crt) file.

# private key
openssl genrsa -des3 -out asterisk.key 1024 

# generate csr
openssl req -new -key asterisk.key -out asterisk.csr

# generate certificate
openssl ca -in asterisk.csr -out asterisk.crt -cert ca.crt -keyfile ca.key

The steps to generate a extension certificate are as follows:

1.Generate a private key (.key).

2.Generate a certificate signing request (.csr).

3.Use the CA root certificate to sign the certificate and obtain a signed certificate (.crt) file.

# private key
openssl genrsa -des3 -out 1001.key 1024 

# generate csr
openssl req -new -key 1001.key -out 1001.csr

# generate certificate
openssl ca -in 1001.csr -out 1001.crt -cert ca.crt -keyfile ca.key

Generate .pem file

cat asterisk.crt asterisk.key > asterisk.pem
 cat 1002.crt 1002.key > 1002.pem

Step 3.Upload certificate to Yeastar S20

Pasted 36

Step 4.Enable TLS on the Analog Gateway FXS, and upload the client key and certificate for extension 1001.

Go to VoIP->SIP Account Security, enable the TLS, and upload the client key and certificate for extension 1001.

Pasted 19

Step 5.Register extension 1001 on the Analog Gateway FXS, and bind it to the FXS port.

Register extension 1001, and choose TLS as the transport mode.

Pasted 37
Pasted 38
If you want use SRTP to encrypt the call, change the encryption to Yes(SRTP only)
Pasted 39
Go to Analog → Channel Settings, bind extension 1001 to the FXS port.
Pasted 23

Step 6.Register extension 1002 on the softphone.

In this example, we use the free softphone software Blink for testing.

When configuring the account, pay attention to the following parameters related to TLS:

Pasted 24

Pasted 25

If you want to use SRTP, please change the configure of SRTP on softphone.

D7lmMuD7LFdTAAAAAElFTkSuQmCC

Test call

Use 1002 call 1001, the encryption icon will show on the softphone.

Pasted 42

 

Still stuck? How can we help?

Was this page helpful? Yes No

How can we help?

Leave a Comment Cancel reply

CONTENTS

Copyright © 2002-2024 OpenVox all rights reserved.