public function obtain(): Certificado
    {
        $temporaryFile = TemporaryFile::create();
        // the temporary name was created
        try {
            $this->save($temporaryFile->getPath());
            $certificado = new Certificado($temporaryFile->getPath());
            return $certificado;
        } finally {
            $temporaryFile->remove();
        }
    }