{"id":9988,"date":"2022-02-15T14:41:34","date_gmt":"2022-02-15T22:41:34","guid":{"rendered":"https:\/\/minisoft.com\/support\/?p=9988"},"modified":"2022-02-15T15:26:54","modified_gmt":"2022-02-15T23:26:54","slug":"applying-an-ssl-certificate-to-the-pack-station","status":"publish","type":"post","link":"https:\/\/alt2.minisoft.com\/support\/applying-an-ssl-certificate-to-the-pack-station\/","title":{"rendered":"Applying an SSL certificate to the Pack Station"},"content":{"rendered":"\n<p>To validate a <a href=\"https:\/\/minisoft.com\/support\/index.php\/ship-fx-deep-dive\/\">Pack Station<\/a> certificate, the certificate has to match the domain name. This requires a <a href=\"\/support\/index.php\/generate-a-csr-certificate-signing-request-for-an-ssl-certificate-ship-fx\/\">certificate signing request (CSR<\/a>) made from a private key. A CSR can be generated with Java Keytool, Microsoft Management Console or using a reputable third-party&#8217;s own rules. The CSR is used to obtain an SSL certificate from a third-party, the certificate authority. The certificate authority should send three certificates: root certificate, intermediate certificate and main certificate. The PKCS12 files or JKS files must be added to the keystore on the Pack Station server and the eFORMz server. <\/p>\n\n\n\n<p><strong>NOTE:<\/strong> eFORMz supports PKCS12 or JKS. The Pack Station currently only supports JKS. To convert PKCS12 to JKS, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.jks -deststoretype JKS<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-directory-for-the-keystore\">Create a directory for the keystore<\/h2>\n\n\n\n<p>Open a command prompt and type the following:<\/p>\n\n\n\n<p><code>mkdir sslcert<\/code><\/p>\n\n\n\n<p>Then cd to the newly created directory by typing the following command:<\/p>\n\n\n\n<p><code>cd sslcert<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/02\/sslcert.png\"><img decoding=\"async\" loading=\"lazy\" width=\"204\" height=\"29\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/02\/sslcert.png\" alt=\"\" class=\"wp-image-9993\" srcset=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2022\/02\/sslcert.png 204w, https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2022\/02\/sslcert-150x21.png 150w\" sizes=\"(max-width: 204px) 100vw, 204px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-keystore\">Create keystore<\/h2>\n\n\n\n<p>Use the following command to create a keystore:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">keytool -genkey -alias youralias -keyalg RSA -keystore yourkeystorename.jks -keysize 2048<\/pre>\n\n\n\n<p>You will be prompted to enter keystore password. The default password is <code>changeit<\/code>. You will be asked the following questions:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">What is your first and last name?\n  [Unknown]:  sales.shipfx.cloud\nWhat is the name of your organizational unit?\n  [Unknown]:  IT\nWhat is the name of your organization?\n  [Unknown]:  Minisoft\nWhat is the name of your City or Locality?\n  [Unknown]:  Snohomish\nWhat is the name of your State or Province?\n  [Unknown]:  Washington\nWhat is the two-letter country code for this unit?\n  [Unknown]:  US<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/02\/Keystore.gif\"><img decoding=\"async\" loading=\"lazy\" width=\"600\" height=\"140\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/02\/Keystore.gif\" alt=\"\" class=\"wp-image-9994\"\/><\/a><\/figure>\n\n\n\n<p>To confirm accuracy, type&nbsp;<code>y<\/code>&nbsp;or <code>yes<\/code> and press enter. You will then be prompted to enter the key password. Press enter if you are using the default password.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"generate-a-certificate-signing-request-csr\">Generate a certificate signing request (CSR)<\/h2>\n\n\n\n<p>To generate a CSR, use the <code>-certreq<\/code>&nbsp;command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">keytool -certreq -alias youralias -file yourcsrname.csr -keystore yourkeystorename.jks<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/02\/CSR.gif\"><img decoding=\"async\" loading=\"lazy\" width=\"600\" height=\"310\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/02\/CSR.gif\" alt=\"\" class=\"wp-image-9995\"\/><\/a><\/figure>\n\n\n\n<p><strong>Note:<\/strong>&nbsp;For general information on the creation of a CSR, consult the following post: <a href=\"\/support\/index.php\/generate-a-csr-certificate-signing-request-for-an-ssl-certificate\/\">Generate a CSR (certificate signing request) for an SSL certificate<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"download-certificate-files\">Download certificate files<\/h2>\n\n\n\n<p>Send the certificate request to your certificate authority (CA). The CA will send you the certificate files. Once you\u2019ve downloaded your certificate files, you\u2019ll need to import them into the keystore.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"import-root-certificate-to-cacerts-jks-and-keystore-jks\">Import root certificate to cacerts.jks and keystore.jks<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">keytool -import -trustcacerts -alias root -file (ROOT CERTIFICATE FILE NAME) -keystore domain.key<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"import-root-certificate-to-cacerts-jks-and-keystore-jks\">Import intermediate certificate to cacerts.jks and keystore.jks<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">keytool -import -trustcacerts -alias intermed -file (INTERMEDIATE CA FILE NAME) -keystore domain.key<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"import-entity-mydomain-com-certificate-to-keystore-jks\">Import entity (mydomain.com) certificate to keystore.jks<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">keytool -import -alias mydomain.com -keystore keystore.jks -trustcacerts -file mydomain.com.crt<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To validate a Pack Station certificate, the certificate has to match the domain name. This requires a certificate signing request (CSR) made from a private key. A CSR can be generated with Java Keytool, Microsoft Management Console or using a reputable third-party&#8217;s own rules. The CSR is used to obtain an SSL certificate from a [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[581,77],"tags":[755,757,652,582],"_links":{"self":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/9988"}],"collection":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=9988"}],"version-history":[{"count":4,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/9988\/revisions"}],"predecessor-version":[{"id":10000,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/9988\/revisions\/10000"}],"wp:attachment":[{"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=9988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=9988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alt2.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=9988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}