Skip to content

Instantly share code, notes, and snippets.

@womd
Last active March 22, 2018 10:21
Show Gist options
  • Select an option

  • Save womd/40ece5a47dfcfe710b3e1edd71238006 to your computer and use it in GitHub Desktop.

Select an option

Save womd/40ece5a47dfcfe710b3e1edd71238006 to your computer and use it in GitHub Desktop.
Using LetsEncrypt with ASP MVC - manual mode
- certificate creation on another machine than the webhost
- need some linux (deb/ubuntu):
apt-get install certbot
command:
cartbot certonly --manual //to start acme-challenge
- place the file from promt with content in prompted directory on server
+ add a web.config to that directory with following content:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension="." mimeType="text/html" />
</staticContent>
</system.webServer>
</configuration>
after certs (*.pem ) have been created, combine them to pxf needed for hostin-panel-install
openssl pkcs12 -export -out certificate.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment