Community discussions

MikroTik App
 
hugal
just joined
Topic Author
Posts: 14
Joined: Thu Sep 28, 2017 7:33 pm

Certificat replacement hotspot

Tue Oct 02, 2018 5:28 pm

I want to change my hotpost certificates by running this script:
ssh admin@SERVER_IP -p SSH_PORT "/file remove certif.key.pem"
ssh admin@SERVER_IP -p SSH_PORT "/file remove certif.crt.pem"
scp -P SSH_PORT certif.crt.pem admin@SERVER_IP:/
scp -P SSH_PORT certif.key.pem admin@SERVER_IP:/

My question:
Do I need to restart the MikroTIK or is it transparent(no restart needed)?
 
hugal
just joined
Topic Author
Posts: 14
Joined: Thu Sep 28, 2017 7:33 pm

Re: Certificat replacement hotspot

Fri Oct 12, 2018 10:48 am

I tried it in a lab, here is the result.
You need to reimport the certificate and might have to reconfigure the service where the certificate should apply.
Import certificate:
/certificate import file-name=crt.pem passphrase="myPASS"
Apply certificate to HTTPS services:
/ip service set www-ssl address=0.0.0.0/0 certificate=crt.pem_0 disabled=no port=443

No need to reboot the mikrotik.

Who is online

Users browsing this forum: rnasci, sebi099, Semrush [Bot], shampooms and 140 guests