Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save henno/7a72dce82281382afbf684dcd56ea8ee to your computer and use it in GitHub Desktop.

Select an option

Save henno/7a72dce82281382afbf684dcd56ea8ee to your computer and use it in GitHub Desktop.
How to create or renew a Namecheap SSL certificate for Mikrotik SSTP VPN
  1. In Namecheap, Open Account > SSL Certificates from the navbar.
  2. Pres RENEW, REISSUE or ACTIVATE depending on which button you see and get to the point where it asks for CSR
  3. Go to https://decoder.link/csr_generator to generate a CSR.
  4. Copy text from the CSR and PRIVATE KEY somewhere safe.
  5. Go back to Namecheap and paste the CSR to the CSR box. The domain name should be read from the CSR.
  6. Next, for the DCV method, choose whatever you wish to use to validate that you have control over the domain and pass the validation process.
  7. After validation you can download the certificate files as a zip file from the SSL details page.
  8. Extract the certificate files from the zip file.
  9. Create a new empty text file with the same name as the .crt in the zip but with .key extension (DOMAIN_NAME.key).
  10. Paste the PRIVATE KEY text into the text file and save it.
  11. In Winbox, go to Files and upload the DOMAIN_NAME.crt and DOMAIN_NAME.key.
  12. Open System > Certificates.
  13. Press the Import button and choose DOMAIN_NAME.key file, the import DOMAIN_NAME.crt file. (If using passphrase and uploading .crt first, you will get an error).
  14. Go to PPP > Inteface and press the SSTP Server button.
  15. Open the Certificate dropdown and select the imported certificate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment