<?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: Using HTTPS for web services in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842051#M4872894</link>
    <description>&lt;P&gt;Hi Mark&lt;/P&gt;
&lt;P&gt;Thank you.  I followed your link and converted the certificate from &lt;EM&gt;.pfx to &lt;/EM&gt;.pem&lt;/P&gt;
&lt;P&gt;Starting my database with 
-x TCPIP -xs https(identity="C:\\Certs_&lt;STRONG&gt;&lt;EM&gt;___.pem";identity_password="xxxx";port=443) still results in a "Unable to open certificate file 'C:\\Certs_&lt;/EM&gt;&lt;/STRONG&gt;___.pem' "&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jun 2014 04:54:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-06-23T04:54:37Z</dc:date>
    <item>
      <title>Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaq-p/13842049</link>
      <description>&lt;P&gt;We've received a wild-card certificate for our domain, say &lt;EM&gt;.aaa.bbb.cc from our service provider.&lt;BR /&gt;
(This file is in a &lt;/EM&gt;.pfx format).&lt;/P&gt;
&lt;P&gt;When I try to start my database using HTTPS:&lt;/P&gt;
&lt;P&gt;-x TCPIP -xs https(identity="C:\\xxxx\\yyyy.pfx";identity_password="zzzz";port=443), Sybase fails to start with the message '&lt;STRONG&gt;Unable to open certificate file "C:\\xxxx\\yyyy.pfx"&lt;/STRONG&gt;'&lt;/P&gt;
&lt;P&gt;Any advice?  Am I supposed to do something with the original certificate before it can be used in this context?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 09:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaq-p/13842049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-20T09:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842050#M4872893</link>
      <description>&lt;P&gt;You need to convert your certificate from PFX format to PEM format.&lt;/P&gt;
&lt;P&gt;To do this you can use the openssl tools.  E.g. see &lt;A href="http://support.citrix.com/article/CTX106028"&gt;here&lt;/A&gt; for a description.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 09:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842050#M4872893</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2014-06-20T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842051#M4872894</link>
      <description>&lt;P&gt;Hi Mark&lt;/P&gt;
&lt;P&gt;Thank you.  I followed your link and converted the certificate from &lt;EM&gt;.pfx to &lt;/EM&gt;.pem&lt;/P&gt;
&lt;P&gt;Starting my database with 
-x TCPIP -xs https(identity="C:\\Certs_&lt;STRONG&gt;&lt;EM&gt;___.pem";identity_password="xxxx";port=443) still results in a "Unable to open certificate file 'C:\\Certs_&lt;/EM&gt;&lt;/STRONG&gt;___.pem' "&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 04:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842051#M4872894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-23T04:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842052#M4872895</link>
      <description>&lt;P&gt;Just another point:
I've run the converted ____.pem through a validation routine at &lt;A href="http://www.sslshopper.com/certificate-decoder.html"&gt;http://www.sslshopper.com/certificate-decoder.html&lt;/A&gt; and everything came back fine.  Which means it eliminates the points in the help documents here: &lt;A href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.sqlanywhere.12.0.0/saerrors/mlcommerr33.html"&gt;http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.sqlanywhere.12.0.0/saerrors/mlcommerr33.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 06:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842052#M4872895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-23T06:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842053#M4872896</link>
      <description>&lt;P&gt;How are you starting your server?  If running as a service then make sure that the service (user) has permission to the certificate file.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 07:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842053#M4872896</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2014-06-23T07:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842054#M4872897</link>
      <description>&lt;P&gt;Mark, calling it from the command-line with admin priviledges:
C:\\OpenSSL-Win32\\bin&amp;gt;dbsrv12 "PW12.db" -x TCPIP -xs https(identity="C:\\Certs_&lt;STRONG&gt;&lt;EM&gt;__.pem";identity_password="&lt;/EM&gt;&lt;/STRONG&gt;___")&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 03:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842054#M4872897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-24T03:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842055#M4872898</link>
      <description>&lt;P&gt;I repro'ed your issue using the command line that you have given ... and your problem is that you need to remove the quotes (the server is including the quote characters as part of the name to the file and as part of the password) - the quotes are not needed since the fields are semicolon delimited. Example, try using:&lt;/P&gt;
&lt;PRE&gt;dbsrv12 "PW12.db" -x TCPIP -xs https(identity=C:\\Certs___.pem;identity_password=___)
&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842055#M4872898</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2014-06-24T09:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842056#M4872899</link>
      <description>&lt;P&gt;Mark, I really appreciate your help.
My password starts with an '@' character.  Without quotes in the identity_password parameter, it won't accept the line and comes up with the help screen for dbsrv12 usage &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Seems like I've painted myself into a corner.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 07:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842056#M4872899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-26T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842057#M4872900</link>
      <description>&lt;P&gt;Try putting the whole -xs switch value in quotes: &lt;CODE&gt;-xs "https(identity=C:\\Certs___.pem;identity_password=___)"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 07:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842057#M4872900</guid>
      <dc:creator>graeme_perrow</dc:creator>
      <dc:date>2014-06-26T07:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842058#M4872901</link>
      <description>&lt;P&gt;Correct, I have confirmed that if you quote the entire -xs options string then v12 will start up. Example:&lt;/P&gt;
&lt;PRE&gt;dbsrv12 -n foo -xs "https(identity=myid.pem;identity_password=@secret)"
&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jun 2014 08:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842058#M4872901</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2014-06-26T08:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842059#M4872902</link>
      <description>&lt;P&gt;Thanks guys.  I'm convinced the problem lies in my password.  It contains &amp;amp; and @ as characters.
Say the password is @aaa&amp;amp;123&lt;/P&gt;
&lt;P&gt;When I try to test the certificate with Sybase's viewcert utility:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;viewcert -ip @aaa&amp;amp;123 accsys.pem, the response is
'123' is not recognized as an internal or external command,operable program or batch file. - Which means the '&amp;amp;' is messing things up.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;viewcert -ip "@aaa&amp;amp;123" accsys.pem, the response is
Can't open file aaa&amp;amp;123 - Which means it's throwing away the '@' in the beginning.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 26 Jun 2014 10:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842059#M4872902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-26T10:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using HTTPS for web services</title>
      <link>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842060#M4872903</link>
      <description>&lt;P&gt;'&amp;amp;' is a special character for many Windows and Unix shells so I would highly recommended that you never use it in passwords nor user names or file names, etc.  (also included in this list of non-recommended characters - and this is just my opinion, not an 'official' SQLA recommendation - would be semicolons ';', commas ',', dollar signs '$', percent '%', and leading '@' characters. Using these characters just leads you into troubles like the one that you are having).&lt;/P&gt;
&lt;P&gt;'@' at the beginning of a field is a special character for SQL Anywhere - it tells SQLA that the following string (e.g. @abc) is a name of a file that contains command line options. See &lt;A href="http://dcx.sybase.com/index.html#sa160/en/dbadmin/dbutilities-s-5613446.html"&gt;http://dcx.sybase.com/index.html#sa160/en/dbadmin/dbutilities-s-5613446.html&lt;/A&gt; for more info.&lt;/P&gt;
&lt;P&gt;A solution for you is to put your command line options (for viewcert or dbsrv12 or any other SQLA command) into a file (e.g. 'viewcert_opts.txt') and then run your command using
&lt;/P&gt;&lt;PRE&gt;viewcert @viewcert_opts.txt accsys.pem
&lt;/PRE&gt;.  The contents of this file, in your case, would be:
&lt;PRE&gt;-p @aaa&amp;amp;123
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 10:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-https-for-web-services/qaa-p/13842060#M4872903</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2014-06-26T10:27:00Z</dc:date>
    </item>
  </channel>
</rss>

