Jump to content
  • 0

ssl enable error for antmedia 2.1.0


Joe Lin
 Share

Question

I followed the instruction here (https://antmedia.io/enable-ssl-on-ant-media-server/) to import my certificate to antmedia server. I used a new alias but the shell command enable_ssl.sh still gives and error saying that the alias <tomcat> already exists:

```

root@docker-desktop:/usr/local# cd antmedia/

root@docker-desktop:/usr/local/antmedia# ./enable_ssl.sh -f /home/certificate.crt -p /home/private.key -d zdgate.com

domain: zdgate.com


Importing keystore /usr/local/antmedia/zdgate.com/fullchain_and_key.p12 to /usr/local/antmedia/zdgate.com/keystore.jks...

Existing entry alias tomcat exists, overwrite? [no]:  

Enter new alias name (RETURN to cancel import for this entry):  zdgate

Certificate stored in file </usr/local/antmedia/zdgate.com/tomcat.cer>

keytool error: java.lang.Exception: Certificate not imported, alias <tomcat> already exists

There is a problem in installing SSL to Ant Media Server.

 Please take a look at the logs above and try to fix.

 If you do not have any idea, contact@antmedia.io

root@docker-desktop:/usr/local/antmedia# 

```
Thanks for any help
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
Hi, Could you delete please *.jks files that located in /usr/local/antmedia/conf/ ? Then please rerun the enable_ssl.sh script.

Best.

9 Ağustos 2020 Pazar 03:54:27 UTC+3 tarihinde Joe Lin yazdı:
I followed the instruction here (https://antmedia.io/enable-ssl-on-ant-media-server/) to import my certificate to antmedia server. I used a new alias but the shell command enable_ssl.sh still gives and error saying that the alias <tomcat> already exists:

```

root@docker-desktop:/usr/local# cd antmedia/

root@docker-desktop:/usr/local/antmedia# ./enable_ssl.sh -f /home/certificate.crt -p /home/private.key -d zdgate.com

domain: zdgate.com


Importing keystore /usr/local/antmedia/zdgate.com/fullchain_and_key.p12 to /usr/local/antmedia/zdgate.com/keystore.jks...

Existing entry alias tomcat exists, overwrite? [no]:  

Enter new alias name (RETURN to cancel import for this entry):  zdgate

Certificate stored in file </usr/local/antmedia/zdgate.com/tomcat.cer>

keytool error: java.lang.Exception: Certificate not imported, alias <tomcat> already exists

There is a problem in installing SSL to Ant Media Server.

 Please take a look at the logs above and try to fix.

 If you do not have any idea, con...@antmedia.io

root@docker-desktop:/usr/local/antmedia# 

```
Thanks for any help
Link to comment
Share on other sites

 Share

×
×
  • Create New...