{"id":1721,"date":"2012-10-18T19:13:57","date_gmt":"2012-10-18T17:13:57","guid":{"rendered":"http:\/\/www.mariotti.de\/?p=1721"},"modified":"2012-10-18T19:13:57","modified_gmt":"2012-10-18T17:13:57","slug":"ssl-am-iis-automatisch-per-skript-einrichten","status":"publish","type":"post","link":"https:\/\/dev.mariotti.de\/?p=1721","title":{"rendered":"SSL am IIS automatisch per Skript einrichten"},"content":{"rendered":"<p>Das folgende Beispiel zeigt wie man unter Windows 2008\/2008 R2 am IIS automatisch SSL per Script einrichtet.<\/p>\n<pre class=\"prettyprint lang-batchfile \" data-start-line=\"1\" data-visibility=\"visible\" data-caption=\"\" data-highlight=\"\"># Installation eines Root Zertifikats (\u00fcblicherweise als .CER Datei) \n%Systemroot%\\System32\\certutil.exe -addstore root C:\\YourRootCertificateFile.cer\n# Installation eines SSL Zertifkates incl. Privatem Schl\u00fcssel (\u00fcblicherweise als .PFX Datei) \n%Systemroot%\\System32\\certutil.exe -p YourPassword -importPFX C:\\YourCertificateFile.pfx\n# SSL Zertifikat dem IIS hinzuf\u00fcgen (Hinweis: Bei dem Wert YourCertHash handelt es sich um den Fingerprint des Zertifikates) \n%Systemroot%\\System32\\netsh.exe http add sslcert ipport=0.0.0.0:443 certhash=YourCertHash appid={4dc3e181-e14b-4a21-b022-59fc669b0914}\n# Binden des Zertifkat an die Default Web Site des IIS \n%Systemroot%\\System32\\inetsrv\\AppCmd.exe set site \"Default Web Site\" \/bindings:https:\/\/:443\n# SSL Flags zum Erzwingen von SSL konfigurieren \n%Systemroot%\\System32\\AppCmd.exe set config \"Default Web Site\" -commitPath:APPHOST -section:access -sslFlags: Ssl<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Der Artikel zeigt wie man im IIS automatisch SSL per Script einrichtet.<\/p>\n","protected":false},"author":2,"featured_media":2314,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-1721","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts\/1721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1721"}],"version-history":[{"count":0,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts\/1721\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/media\/2314"}],"wp:attachment":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}