def signature_extract
      manifest = YAML.load(File.open($config['general']['app_cache'] + "/artifacts/manifest.#{@checksum}.yaml"), safe: true, raise_on_unknown_tag: true)

      if manifest['gpgsig']
        # We have the base64 version
        @signature = manifest['gpgsig']

        # Decode the base64 and write the signature file
        File.write("#{$config['general']['app_cache']}/artifacts/artifact.#{@checksum}.tar.gz.sig", Base64.decode64(@signature))

        return @signature
      else
        return false
      end

    rescue StandardError => e
      $logger.error 'Something unexpected occured when reading the manifest file'
      raise e
    end
def signature_extract
      manifest = YAML.load(File.open($config['general']['app_cache'] + "/artifacts/manifest.#{@checksum}.yaml"), safe: true, raise_on_unknown_tag: true)

      if manifest['gpgsig']
        # We have the base64 version
        @signature = manifest['gpgsig']

        # Decode the base64 and write the signature file
        File.write("#{$config['general']['app_cache']}/artifacts/artifact.#{@checksum}.tar.gz.sig", Base64.decode64(@signature))

        return @signature
      else
        return false
      end

    rescue StandardError => e
      $logger.error 'Something unexpected occured when reading the manifest file'
      raise e
    end
Extract the signature from the manifest file and write it to file in native binary format.

 false     Unable to extract
 unsigned  Manifest shows that the artifact is not signed
 base64    Encoded signature