text: from django.http import HttpResponse
  from djangossl.models import SSL
  
  
  def ssl_http(request, chave):
      ssl = SSL.objects.filter(chave=chave)
      if ssl:
          valor = str(ssl[0].valor).replace('\r\n', '\n')
      else:
          valor = ''
  
      filename = chave + '.txt'
      content = valor
      response = HttpResponse(content, content_type='text/plain')
      response['Content-Disposition'] = 'attachment; filename={0}'.format(filename)
      return response
  