<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SSL Error: Cannot use private key file; please check your password. in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885236#M26944</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we have Base SAS 9.4 M7 installed on a RHEL server i am trying to encrypt the Connect/Spawner with SSL below is the command i am using to start the SAS Spawner&lt;/P&gt;&lt;P&gt;ETLsasSpawnerCommand="${ETLsasRoot}/utilities/bin/cntspawn -service sasspawn -shell -netencryptalgorithm ssl -sslcalistloc /opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/trustcert.pem -sslcertloc /opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/clrv0000214910.pem -sslpvtkeyloc /opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/clrv0000214910.ic.ing.net.key -sslpvtkeypass {SAS004}0568374BFFFB1E18393DBEFABB6A4FA74E67977AA6C4B149"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried a private key which is not password protected but then i get error like "ERROR: SSL Error: Cannot use private key file; please check your password."&lt;/P&gt;&lt;P&gt;I passed a password without SAS encoding then also i get error&amp;nbsp;&amp;nbsp;"ERROR: SSL Error: Cannot use private key file; please check your password."&lt;/P&gt;&lt;P&gt;I tried encoding password with {SAS001}&amp;nbsp;then also i get error&amp;nbsp;&amp;nbsp;"ERROR: SSL Error: Cannot use private key file; please check your password."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when we passed password with {SAS005} encoding then it gives below error&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAH201001I Server SAS Connect Spawner, State, starting&lt;/P&gt;&lt;P&gt;SAS Connect Spawner version 9.40 (build date: Feb 1 2021)&lt;BR /&gt;Copyright (C) 2011-2013, SAS Institute Inc., Cary, NC, USA. All Rights Reserved&lt;BR /&gt;ERROR: The encryption provider libraries cannot be found.&lt;BR /&gt;ERROR: Unable to load extension: (tkersa2)&lt;BR /&gt;ERROR: SSL Error: Cannot use private key file; please check your password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have also defined the path to&amp;nbsp;tkersa2 library in the config file, but didn't helped&lt;/P&gt;&lt;P&gt;can someone please help to solve this issue, we will prefer to not use any password for the private key&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 10:07:37 GMT</pubDate>
    <dc:creator>lalit_Jalkhare</dc:creator>
    <dc:date>2023-07-18T10:07:37Z</dc:date>
    <item>
      <title>SSL Error: Cannot use private key file; please check your password.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885236#M26944</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we have Base SAS 9.4 M7 installed on a RHEL server i am trying to encrypt the Connect/Spawner with SSL below is the command i am using to start the SAS Spawner&lt;/P&gt;&lt;P&gt;ETLsasSpawnerCommand="${ETLsasRoot}/utilities/bin/cntspawn -service sasspawn -shell -netencryptalgorithm ssl -sslcalistloc /opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/trustcert.pem -sslcertloc /opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/clrv0000214910.pem -sslpvtkeyloc /opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/clrv0000214910.ic.ing.net.key -sslpvtkeypass {SAS004}0568374BFFFB1E18393DBEFABB6A4FA74E67977AA6C4B149"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried a private key which is not password protected but then i get error like "ERROR: SSL Error: Cannot use private key file; please check your password."&lt;/P&gt;&lt;P&gt;I passed a password without SAS encoding then also i get error&amp;nbsp;&amp;nbsp;"ERROR: SSL Error: Cannot use private key file; please check your password."&lt;/P&gt;&lt;P&gt;I tried encoding password with {SAS001}&amp;nbsp;then also i get error&amp;nbsp;&amp;nbsp;"ERROR: SSL Error: Cannot use private key file; please check your password."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when we passed password with {SAS005} encoding then it gives below error&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAH201001I Server SAS Connect Spawner, State, starting&lt;/P&gt;&lt;P&gt;SAS Connect Spawner version 9.40 (build date: Feb 1 2021)&lt;BR /&gt;Copyright (C) 2011-2013, SAS Institute Inc., Cary, NC, USA. All Rights Reserved&lt;BR /&gt;ERROR: The encryption provider libraries cannot be found.&lt;BR /&gt;ERROR: Unable to load extension: (tkersa2)&lt;BR /&gt;ERROR: SSL Error: Cannot use private key file; please check your password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have also defined the path to&amp;nbsp;tkersa2 library in the config file, but didn't helped&lt;/P&gt;&lt;P&gt;can someone please help to solve this issue, we will prefer to not use any password for the private key&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 10:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885236#M26944</guid>
      <dc:creator>lalit_Jalkhare</dc:creator>
      <dc:date>2023-07-18T10:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Error: Cannot use private key file; please check your password.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885256#M26946</link>
      <description>&lt;P&gt;It could be that the problem is your private key file, not the password. Make sure your private key file is a PEM file format, i.e., it is human readable and starts with something like "-----BEGIN RSA PRIVATE KEY-----".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can test to see if the certificate, private key file, and password are correct using openssl command with the s_server subcommand:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;openssl s_server -debug -www -cert&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier" size="2"&gt;/opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/clrv0000214910.pem -key&amp;nbsp;/opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/clrv0000214910.ic.ing.net.key -pass pass:&amp;lt;password&amp;gt; -CAfile&amp;nbsp;/opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/trustcert.pem&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;If the password is invalid, you will see&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;unable to load server certificate private key file&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;140521628231496:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:535:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;140521628231496:error:23077074:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 cipherfinal error:p12_decr.c:97:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;140521628231496:error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error:p12_decr.c:123:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;140521628231496:error:0907B00D:PEM routines:PEM_READ_BIO_PRIVATEKEY:ASN1 lib:pem_pkey.c:132:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 12:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885256#M26946</guid>
      <dc:creator>doug_sas</dc:creator>
      <dc:date>2023-07-18T12:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Error: Cannot use private key file; please check your password.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885345#M26950</link>
      <description>&lt;P&gt;Many Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/899"&gt;@doug_sas&lt;/a&gt;&amp;nbsp; for the reply, indeed the issue was with the private key file, the Spawner was&amp;nbsp; successfully stated with a different file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now i want to connect my windows custom client to the Spawner running on the RHEL Server.&lt;/P&gt;&lt;P&gt;we use the scripted method (tcpunix.scr) to sign on to the spawner below code is used to invoke the sign on&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%include ".\address.sas";&lt;BR /&gt;options netencryptalgorithm=ssl;&lt;BR /&gt;options remote=TOOLremo;&lt;BR /&gt;filename rlink ".\tcpunix.scr";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- the address file contains the server name and port name&lt;/P&gt;&lt;P&gt;- below is the code of&amp;nbsp;tcpunix.scr file which simply run a ksh script on the server to launch a SAS session on the spawner&lt;/P&gt;&lt;P&gt;______________________________________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;type 'sas -dmr -noterminal netencryptalgorithm=ssl -nosyntaxcheck' LF;&lt;BR /&gt;waitfor 'SESSION ESTABLISHED', 90 seconds : nosas;&lt;/P&gt;&lt;P&gt;log 'NOTE: SAS/CONNECT conversation established.';&lt;BR /&gt;stop;&lt;/P&gt;&lt;P&gt;unxspawn:&lt;BR /&gt;type "ksh /ING/DWH/ETL/common/tools/sas/sasetlmonitor &amp;amp;TOOLShoNam &amp;amp;TOOL_CLIusr" LF;&lt;BR /&gt;waitfor 'SESSION ESTABLISHED', 90 seconds : nosas;&lt;BR /&gt;stop;&lt;/P&gt;&lt;P&gt;___________________________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Below is the code of the KSH script (sasetlmonitor) which is called by the tcpunix.scr file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;${ETLsasRoot}/sas -dmr \&lt;BR /&gt;-altlog ${altlog} \&lt;BR /&gt;-work ${work} \&lt;BR /&gt;-config ${config} \&lt;BR /&gt;-sslcertloc /opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/cert.pem \&lt;BR /&gt;-sslpvtkeyloc /opt/DWH/ETL/common/tools/misc/spawn/bin/keystore/store/privkey.pem \&lt;BR /&gt;-device grlink \&lt;BR /&gt;-noterminal \&lt;BR /&gt;-nonews \&lt;BR /&gt;-no\$syntaxcheck \&lt;BR /&gt;-dmsbatch&lt;/P&gt;&lt;P&gt;_______________________________&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have alraedy imported and trusted the certificate on the windows client server, but when i try to login to spawner with client we get below error on rhel logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running as user dwhmgr on hostname clrv0000214910.ic.ing.net&lt;BR /&gt;ERROR: A communication subsystem environment initialization request failure&lt;BR /&gt;ERROR: has occurred.&lt;BR /&gt;ERROR: Network request failed (rc 0x00007F971B5324B0) - SSL Error:&lt;BR /&gt;ERROR: Certificate was not found.&lt;BR /&gt;NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414&lt;BR /&gt;NOTE: The SAS System used:&lt;BR /&gt;NOTE: real time 0.02 seconds&lt;BR /&gt;NOTE: cpu time 0.03 seconds&lt;BR /&gt;NOTE:&lt;BR /&gt;NOTE: SAH239999I CONNECT, State, stopped&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me debug the issue, if i am missing somewhere to pass the certificate file&lt;/P&gt;&lt;P&gt;many thanks in advance for your time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 19:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885345#M26950</guid>
      <dc:creator>lalit_Jalkhare</dc:creator>
      <dc:date>2023-07-18T19:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Error: Cannot use private key file; please check your password.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885426#M26957</link>
      <description>&lt;P&gt;Seems to me that your script is going to run&amp;nbsp;&amp;nbsp;'sas -dmr -noterminal netencryptalgorithm=ssl -nosyntaxcheck' and not your KSH script. Since there are no SSL options, the connection is going to fail as you found out.&lt;BR /&gt;&lt;BR /&gt;Look at&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/connref/p0ze0vzqoyxy34n1sa0rpk8qd5n5.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/connref/p0ze0vzqoyxy34n1sa0rpk8qd5n5.htm&lt;/A&gt;&amp;nbsp;for more information about signon scripts.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 11:26:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885426#M26957</guid>
      <dc:creator>doug_sas</dc:creator>
      <dc:date>2023-07-19T11:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Error: Cannot use private key file; please check your password.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885444#M26961</link>
      <description>&lt;P&gt;Thanks, we were able to login to SAS Spawner with our client.&lt;/P&gt;&lt;P&gt;i have one silly question, sorry for that how, is there a way to confirm the Connection is Encrypted with SSL because on client server i checked it is showing as SAS is using TCP port 14555, so it means SAS client is connected to Spawner on TCP port 14555 with SSL Encryption ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- below is the Process which runs on Server when client session is successfully Stablished with Spawner&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lalit_Jalkhare_0-1689770401988.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85915i42C45B90C05067A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lalit_Jalkhare_0-1689770401988.png" alt="lalit_Jalkhare_0-1689770401988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;we have not Defined COMAMID = TCP any where, so is this be default ?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 12:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885444#M26961</guid>
      <dc:creator>lalit_Jalkhare</dc:creator>
      <dc:date>2023-07-19T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: SSL Error: Cannot use private key file; please check your password.</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885446#M26962</link>
      <description>&lt;P&gt;1) The client log should state that it is using SSL for encryption.&lt;BR /&gt;2) For UNIX/Linux/Windows TCPIP is always used. For MVS, it may use XMS (shared memory) or TCPIP.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 12:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SSL-Error-Cannot-use-private-key-file-please-check-your-password/m-p/885446#M26962</guid>
      <dc:creator>doug_sas</dc:creator>
      <dc:date>2023-07-19T12:47:08Z</dc:date>
    </item>
  </channel>
</rss>

