AnsweredAssumed Answered

Use restman to change listenport settings

Question asked by BramWithaar on May 2, 2017
Latest reply on May 30, 2018 by Prashant0384

I would like to use the RestMan interface to change the EnabledCipherSuites for a listenport (to make it easier to use the same set of ciphersuites on all ports, the UI is not very efficient).

I can't find any examples of a correct message to send with a PUT request.

 

I'm trying this xml now, that results in a 'error in assertion processing' without any further clues.

Any hint or working example is appreciated.

 

<l7:Item xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Name>xxxx (HTTPS)</l7:Name>
   <l7:Id>xxxxx</l7:Id>
   <l7:Type>SSG_CONNECTOR</l7:Type>  
   <l7:Resource>
      <l7:ListenPort id="******" version="149">
         <l7:Name>xxxx (HTTPS)</l7:Name>
         <l7:Enabled>true</l7:Enabled>
         <l7:Protocol>HTTPS</l7:Protocol>
         <l7:Interface>xxxxx</l7:Interface>
         <l7:Port>xxxxx</l7:Port>
         <l7:EnabledFeatures>
            <l7:StringValue>Published service message input</l7:StringValue>
            <l7:StringValue>Password changing service</l7:StringValue>
            <l7:StringValue>WSDL download service</l7:StringValue>
         </l7:EnabledFeatures>
         <l7:TlsSettings>
            <l7:ClientAuthentication>Optional</l7:ClientAuthentication>
            <l7:PrivateKeyReference id="******" resourceUri="http://ns.l7tech.com/2010/04/gateway-management/privateKeys"/>
            <l7:EnabledVersions>
               <l7:StringValue>TLSv1</l7:StringValue>
               <l7:StringValue>TLSv1.2</l7:StringValue>
            </l7:EnabledVersions>
            <l7:EnabledCipherSuites>
               <l7:StringValue>TLS_RSA_WITH_AES_256_CBC_SHA</l7:StringValue>
               <l7:StringValue>TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384</l7:StringValue>
               <l7:StringValue>TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA</l7:StringValue>
               <l7:StringValue>TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384</l7:StringValue>
               <l7:StringValue>TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384</l7:StringValue>
               <l7:StringValue>TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384</l7:StringValue>
               <l7:StringValue>TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384</l7:StringValue>
               <l7:StringValue>TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256</l7:StringValue>
               <l7:StringValue>TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256</l7:StringValue>
               <l7:StringValue>TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256</l7:StringValue>
               <l7:StringValue>TLS_RSA_WITH_AES_256_GCM_SHA384</l7:StringValue>
            </l7:EnabledCipherSuites>
         </l7:TlsSettings>
         <l7:Properties>
            <l7:Property key="useExtendedFtpCommandSet">
               <l7:StringValue>false</l7:StringValue>
            </l7:Property>
         </l7:Properties>
      </l7:ListenPort>
   </l7:Resource>
</l7:Item>

Outcomes