code: def import_signed(cls, name, certificate, private_key, intermediate=None):
          
          tls = TLSServerCredential.create(name)
          try:
              tls.import_certificate(certificate)
              tls.import_private_key(private_key)
              if intermediate is not None:
                  tls.import_intermediate_certificate(intermediate)
          except CertificateImportError:
              tls.delete()
              raise
          return tls
docs: Import a signed certificate and private key to SMC, and optionally
          an intermediate certificate.
          The certificate and the associated private key must be compatible
          with OpenSSL and be in PEM format. The certificate and private key
          can be imported as a raw string, file path or file object.
          If importing as a string, be sure the string has carriage returns after
          each line and the final `END CERTIFICATE` line.
          
          Import a certificate and private key::
          
              >>> tls = TLSServerCredential.import_signed(
                      name='server2.test.local',
                      certificate='mydir/server.crt',
                      private_key='mydir/server.key')
              >>> tls
              TLSServerCredential(name=server2.test.local)   
          
          :param str name: name of TLSServerCredential
          :param str certificate: fully qualified to the certificate file, string or file object
          :param str private_key: fully qualified to the private key file, string or file object
          :param str intermediate: fully qualified to the intermediate file, string or file object
          :raises CertificateImportError: failure during import
          :raises CreateElementFailed: failed to create credential
          :raises IOError: failure to find certificate files specified
          :rtype: TLSServerCredential