{"id":6217,"date":"2020-12-14T06:41:53","date_gmt":"2020-12-14T06:41:53","guid":{"rendered":"https:\/\/truehost.co.ke\/support\/?post_type=ht_kb&#038;p=6217"},"modified":"2024-06-07T13:03:13","modified_gmt":"2024-06-07T13:03:13","password":"","slug":"how-to-upload-a-txt-file-via-ssh-for-ssl-validation","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/","title":{"rendered":"How to Upload a .txt file via SSH for SSL Validation"},"content":{"rendered":"\n<p>One of the methods provided to validate SSL is via File Validation. In this method, the domain owner is required to prove ownership by uploading a .txt file provided by the CA to a specific location in the document root of the server. To do this, follow the steps below<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">From Linux Computer<\/h2>\n\n\n\n<p>If you run a Linux OS on your desktop, follow the steps below:<\/p>\n\n\n\n<p>1.Open terminal on your computer<\/p>\n\n\n\n<p>2.Download the validation file to your computer. By default, the downloaded file can be found under Download folder.<\/p>\n\n\n\n<p>3.Run the command below to upload the file. Assume the file name is HGTYKS1547HT.txt<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">scp -p 22 HGTYKS1547HT.txt user@12.34.56.78:\/home<\/pre>\n\n\n\n<p>Replace user with your remote server username and 12.34.56.78 with your server IP or Hostname and 22 to your SSH port.<\/p>\n\n\n\n<p>4.Once uploaded, login to the server and navigate to \/home directory, <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$: cd \/home<\/pre>\n\n\n\n<p> 5.Create appropriate directories as follows on your document root. Document root is the folder where your website files reside. For this documentation, we shall assume our document root is \/var\/www\/html<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$: mkdir -p \/var\/www\/html\/.well-known\/pki-validation<\/pre>\n\n\n\n<p>This will create the folders called .well-known and pki-validation<\/p>\n\n\n\n<p>6. You can now move the validation fil to the above location usng the command below<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$: mv HGTYKS1547HT.txt \/var\/www\/html\/.well-known\/pki-validation<\/pre>\n\n\n\n<p>7. Then test if this is properly uploaded using the validation link provided <\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">From Windows Computer (Windows 10)<\/h2>\n\n\n\n<p>For a Windows computers, we will use a program called Powershell to upload the files.<\/p>\n\n\n\n<p>1.On Windows Search, search the word Powershell and click on it<\/p>\n\n\n\n<p>2.Download the validation file to your computer. By default, the downloaded file can be found under Downloads folder.<\/p>\n\n\n\n<p>3. Navigate to the download folder using the command below<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> >cd Downloads<\/pre>\n\n\n\n<p>After that, follow the steps 3 &#8211; 7 on the Linux guide above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the methods provided to validate SSL is via File Validation. In this method, the domain owner is required to prove ownership by uploading a .txt file provided by the CA to a specific location in the document root of the server. To do this, follow the steps below From Linux Computer If you [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[],"doc_tag":[],"class_list":["post-6217","docs","type-docs","status-publish","hentry"],"year_month":"2026-07","word_count":298,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"w m","author_nicename":"wm","author_url":"https:\/\/truehost.com\/support\/author\/wm\/"},"doc_category_info":[],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Upload a .txt file via SSH for SSL Validation -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Upload a .txt file via SSH for SSL Validation -\" \/>\n<meta property=\"og:description\" content=\"One of the methods provided to validate SSL is via File Validation. In this method, the domain owner is required to prove ownership by uploading a .txt file provided by the CA to a specific location in the document root of the server. To do this, follow the steps below From Linux Computer If you [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-07T13:03:13+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\\\/\",\"name\":\"How to Upload a .txt file via SSH for SSL Validation -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"datePublished\":\"2020-12-14T06:41:53+00:00\",\"dateModified\":\"2024-06-07T13:03:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Upload a .txt file via SSH for SSL Validation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Upload a .txt file via SSH for SSL Validation -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/","og_locale":"en_US","og_type":"article","og_title":"How to Upload a .txt file via SSH for SSL Validation -","og_description":"One of the methods provided to validate SSL is via File Validation. In this method, the domain owner is required to prove ownership by uploading a .txt file provided by the CA to a specific location in the document root of the server. To do this, follow the steps below From Linux Computer If you [&hellip;]","og_url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/","article_modified_time":"2024-06-07T13:03:13+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/","url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/","name":"How to Upload a .txt file via SSH for SSL Validation -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"datePublished":"2020-12-14T06:41:53+00:00","dateModified":"2024-06-07T13:03:13+00:00","breadcrumb":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-upload-a-txt-file-via-ssh-for-ssl-validation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Upload a .txt file via SSH for SSL Validation"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=6217"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6217\/revisions"}],"predecessor-version":[{"id":6218,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6217\/revisions\/6218"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=6217"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=6217"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=6217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}