<?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>Question Re: JAVA Connect SNC with error: No credentials were supplied in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/13622326#M4820108</link>
    <description>&lt;P&gt;The steps you mentioned can be followed when java application is running on-premise system. Do you have steps what needs to be done when application is running on Cloud foundry. My application is running on cloud foundry. App container is having sapcryptolib.so file. While access the application getting exception:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;ERROR &lt;/SPAN&gt;GSS-API(maj): No credentials were supplied&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;Unable to establish the security context&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 12:15:53 GMT</pubDate>
    <dc:creator>gaurav_shah33</dc:creator>
    <dc:date>2024-02-28T12:15:53Z</dc:date>
    <item>
      <title>JAVA Connect SNC with error: No credentials were supplied</title>
      <link>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaq-p/12808115</link>
      <description>&lt;P&gt;Hi Experts&lt;/P&gt;
  &lt;P&gt;I have an error when I try to connect SAP with SNC by sapjco3.jar lib,&lt;/P&gt;
  &lt;P&gt;the system environment is ok, because other SAP account working, I have tested already.&lt;/P&gt;
  &lt;P&gt;the configuration as bellow:&lt;/P&gt;
  &lt;P&gt;1. system32 folder put the sapjco3.jar and sapjco3.dll &lt;/P&gt;
  &lt;P&gt;2. the code specifies the dll SNC_LIB path:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2228306-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;3. and then run the jar application, got error as bellow:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2228307-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;4.this error only for one account, and other SAP account is ok for same system, I don't know where went wrong, maybe the cert configuration or SAP SNC server configuration. and I asked the local SAP supplier, but never replied. &lt;/P&gt;
  &lt;P&gt;some configurations as bellow:&lt;/P&gt;
  &lt;P&gt;import certification: sapgenpse import_own_cert&lt;/P&gt;
  &lt;P&gt;add certification user: sapgenpse.exe seclogin&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;Any help will be appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 01:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaq-p/12808115</guid>
      <dc:creator>huiyong_tan</dc:creator>
      <dc:date>2023-11-29T01:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA Connect SNC with error: No credentials were supplied</title>
      <link>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808116#M4809590</link>
      <description>&lt;P&gt;By the way, if the users use the classic authentication (user + password) they can log into the system with no problem.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 01:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808116#M4809590</guid>
      <dc:creator>huiyong_tan</dc:creator>
      <dc:date>2023-11-29T01:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA Connect SNC with error: No credentials were supplied</title>
      <link>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808117#M4809591</link>
      <description>&lt;P&gt;The error message "&lt;EM&gt;No credentials were supplied&lt;/EM&gt;" means, that the Windows user, under which the java.exe process is running, does not have permission to access the Certificate Store. How does it get that permission? Well, here the first question to ask is: are you using Secure Login Client or did you just download the CommonCrypto Lib and copy it to D:\SAPSNC\SAPSNCx64\sapcrypto.dll?&lt;/P&gt;&lt;P&gt;I would recommend to install and use Secure Login Client (SLC), because it comes for free and makes the management of your user certificate very easy.&lt;/P&gt;&lt;P&gt;However, if you are not using SLC, you are responsible for setting up everything yourself, e.g. defining the correct SECUDIR environment variable, so the PSE file can be found, and using &lt;EM&gt;sapgenpse &lt;/EM&gt;to grant the current Windows user, under which java.exe is running, the necessary permissions to access and use the certificates in the PSE file (or in the Microsoft Certificate Store). I see that you have already tried "&lt;EM&gt;sapgenpse seclogin&lt;/EM&gt;", but either you were executing it for the wrong Windows user (not the one, which in the end executes java.exe), or you supplied the wrong PSE file (not the one containing the certificate used in SNC_MYNAME)?!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808117#M4809591</guid>
      <dc:creator>Ulrich_Schmidt1</dc:creator>
      <dc:date>2023-11-29T08:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA Connect SNC with error: No credentials were supplied</title>
      <link>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808118#M4809592</link>
      <description>&lt;P&gt;Simply follow the instructions of SAP note &lt;A href="https://me.sap.com/notes/1525059"&gt;1525059&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808118#M4809592</guid>
      <dc:creator>MarkusTolksdorf</dc:creator>
      <dc:date>2023-11-29T08:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA Connect SNC with error: No credentials were supplied</title>
      <link>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808119#M4809593</link>
      <description>&lt;P&gt;very useful, thanks for your advice, I will double check it.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808119#M4809593</guid>
      <dc:creator>huiyong_tan</dc:creator>
      <dc:date>2023-11-29T08:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA Connect SNC with error: No credentials were supplied</title>
      <link>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808120#M4809594</link>
      <description>&lt;P&gt;I have no permission to visit this link.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808120#M4809594</guid>
      <dc:creator>huiyong_tan</dc:creator>
      <dc:date>2023-11-29T08:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA Connect SNC with error: No credentials were supplied</title>
      <link>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808121#M4809595</link>
      <description>&lt;P&gt;This raises the question: Why not?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 22:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/12808121#M4809595</guid>
      <dc:creator>HAL9000</dc:creator>
      <dc:date>2023-11-29T22:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA Connect SNC with error: No credentials were supplied</title>
      <link>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/13622326#M4820108</link>
      <description>&lt;P&gt;The steps you mentioned can be followed when java application is running on-premise system. Do you have steps what needs to be done when application is running on Cloud foundry. My application is running on cloud foundry. App container is having sapcryptolib.so file. While access the application getting exception:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;ERROR &lt;/SPAN&gt;GSS-API(maj): No credentials were supplied&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;Unable to establish the security context&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 12:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-connect-snc-with-error-no-credentials-were-supplied/qaa-p/13622326#M4820108</guid>
      <dc:creator>gaurav_shah33</dc:creator>
      <dc:date>2024-02-28T12:15:53Z</dc:date>
    </item>
  </channel>
</rss>

