{"id":6392,"date":"2019-05-14T22:16:46","date_gmt":"2019-05-14T20:16:46","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=6392"},"modified":"2019-05-15T10:39:59","modified_gmt":"2019-05-15T08:39:59","slug":"vmware-workstation-generate-a-new-selfsigned-ssl-tls-certificate","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/vmware-workstation-generate-a-new-selfsigned-ssl-tls-certificate\/","title":{"rendered":"VMware Workstation: Generate a new selfsigned SSL\/TLS certificate"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_6392 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_6392')){$('.twoclick_social_bookmarks_post_6392').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"VMware%20Workstation%3A%20Generate%20a%20new%20selfsigned%20SSL%2FTLS%20certificate\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Athe%20VMware%20Workstation%20does%20not%20provide%20a%20program%20or%20script%20to%20generate%20a%20new%20pair%20of%20key%20and%20selfsigned%20certificate.%0D%0A%0D%0AIf%27ve%20written%20a%20batch%20file%20which%20builds%20a%20new%20one.%20The%20scripts%20assumes%20that%20the%20Workstation%20is%20installed%20in%20the%20default%20folder%20C%3A%5CProgram%20Files%20%28x86%29%5CVMware%5CVMware%20Workstation%20and%20uses%20the%20openssl%20command%20delivered%20with%20the%20program.%20%0D%0A%0D%0AAdjust%20the%20Countryname%2C%20State%2C%20%20...\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/vmware-workstation-generate-a-new-selfsigned-ssl-tls-certificate\\\/\",\"post_id\":6392,\"post_title_referrer_track\":\"VMware+Workstation%3A+Generate+a+new+selfsigned+SSL%2FTLS+certificate\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>the VMware Workstation does not provide a program or script to generate a new pair of key and selfsigned certificate.<\/p>\n<p>If&#8217;ve written a batch file which builds a new one. The scripts assumes that the Workstation is installed in the default folder C:\\Program Files (x86)\\VMware\\VMware Workstation and uses the openssl command delivered with the program. <\/p>\n<p>Adjust the Countryname, State, etc. to your own needs. Config is based on the VMware <a href=\"https:\/\/pubs.vmware.com\/vsphere-50\/index.jsp?topic=%2Fcom.vmware.vsphere.solutions.doc_50%2FGUID-8F45C020-4B25-4C67-958E-EEBD683100BD.html\" rel=\"noopener noreferrer\" target=\"_blank\">Docs<\/a>.<\/p>\n<p><!--more--><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n@echo off\r\nREM\r\nREM Generate a new VMware Workstation Selfsigned Certificate\r\nREM created: 14.05.2019 Michael Albert info@michlstechblog.info\r\nREM \r\nset OPENSSL_DIR=C:\\ProgramData\\VMware\\SSL\r\n\r\necho &#x5B;req]                                                     &gt;   %OPENSSL_DIR%\\openssl.cnf\r\necho default_bits            = 2048                            &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho default_keyfile         = rui.key                         &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho distinguished_name      = req_distinguished_name          &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho #Don't encrypt the key                                    &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho encrypt_key             = no                              &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho prompt                  = no                              &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho string_mask             = nombstr                         &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho.                                                          &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho &#x5B; req_distinguished_name ]                                &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho countryName             = US                              &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho stateOrProvinceName     = California                      &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho localityName            = Palo Alto                       &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho 0.organizationName      = VMware, Inc.                    &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho emailAddress            = ssl-certificates@vmware.com     &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\necho commonName              = %COMPUTERNAME%                  &gt;&gt;  %OPENSSL_DIR%\\openssl.cnf\r\n\r\nSET OPENSSL_CONF=%OPENSSL_DIR%\\openssl.cnf\r\nSET RANDFILE=%temp%\\openssl.rnd\r\n\r\ncd \/d %OPENSSL_DIR%\r\nmove \/Y %OPENSSL_DIR%\\rui.key %OPENSSL_DIR%\\rui.key.old\r\nmove \/Y %OPENSSL_DIR%\\rui.crt %OPENSSL_DIR%\\rui.crt.old\r\n&quot;C:\\Program Files (x86)\\VMware\\VMware Workstation\\openssl.exe&quot; req -nodes -new -x509 -keyout %OPENSSL_DIR%\\rui.key -out %OPENSSL_DIR%\\rui.crt -days 3650\r\n<\/pre>\n<p>Import is to start the script elevated, with administrator permissions.<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, the VMware Workstation does not provide a program or script to generate a new pair of key and selfsigned certificate. If&#8217;ve written a batch file which builds a new one. The scripts assumes that the Workstation is installed in the default folder C:\\Program Files (x86)\\VMware\\VMware Workstation and uses the openssl command delivered with the &hellip; <a href=\"https:\/\/michlstechblog.info\/blog\/vmware-workstation-generate-a-new-selfsigned-ssl-tls-certificate\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">VMware Workstation: Generate a new selfsigned SSL\/TLS certificate<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[1349,651,1348,83,82,433,14,15],"class_list":["post-6392","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-certificates","tag-generate","tag-regenerate","tag-selfsigned","tag-ssl","tag-tls","tag-vmware-2","tag-workstation"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=6392"}],"version-history":[{"count":5,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6392\/revisions"}],"predecessor-version":[{"id":6398,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6392\/revisions\/6398"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=6392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=6392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=6392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}