Aplicar assinaturas digitais
Obter um certificado
You can get a certificate from a certification authority. No matter if you choose a governmental institution or a private company it is common to be charged for this service, for example when they certify your identity. Few other authorities issue certificates free of costs, like the Open Source Project CAcert which is based on the well-known and reliable Web of Trust model and is of growing popularity.
Gerir os certificados
Se estiver utilizando Linux, macOS ou solaris, instale uma versão recente do Mozilla Thunderbird ou Mozilla Firefox. O LibreOffice vai aceder aos certificados armazenados nestas aplicações.
If you have created different profiles in Thunderbird or Firefox and you want to use certificates from one specific user profile, select the profile in . Alternatively, you can set the environment variable MOZILLA_CERTIFICATE_FOLDER to point to the folder containing that profile.
-
Abra as preferências do seu navegador web, selecione a secção Avançado, clique no separador Certificados e escolha a opção Ver certificados. Aparecerá a caixa de diálogo Gestor de certificados.
-
Importe o novo certificado raiz e, em seguida, selecione e edite o certificado. Ative o certificado raiz para que seja fiável, pelo menos, para o acesso à Web e ao correio eletrónico. Esta ação assegura que o certificado pode assinar os documentos. Pode editar qualquer certificado intermédio da mesma forma, mas não esta ação não é obrigatória para documentos assinados.
-
Após ter editado os novos certificados, reinicie o LibreOffice.
On Windows systems, LibreOffice will access the system certificate storage.
Your private key for the digital signature will usually be generated and securely stored by Windows as part of the signature-issuance process. Once the issuing Certificate Authority is satisfied that your computer produced the private key and you have satisfied any other identification requirements, the corresponding public key is signed by the Certificate Authority. For personal keys obtained over the Internet, the private key is generated by your browser and it is not shared with the Certificate Authority.
If a private key is received by other means or you transfer it from another computer, you can install it on your Windows PC by double-clicking on the private key certificate and providing any required password. This private key may be known to others (such as an organizational or governmental security administration) depending on how it was issued to you.
Public keys of other people used to verify document digital signatures, or encrypt documents for their eyes only, are usually stored in your system with digital certificate-management applications. In some cases you will need to manage those public-key certificates yourself.
The general management of public and private keys on your PC will vary depending on the version of Windows you are operating. For more information, use the "Help and Support" topic of your Windows version and search for "digital signature".
Assinar um documento
-
Escolha Ficheiro - Assinaturas digitais - Assinaturas digitais.
-
Uma caixa de mensagem aconselha-o para guardar o documento. Clique em Sim para guardar o ficheiro.
-
After saving, you see the Digital Signatures dialog. Click Add to add a public key to the document.
-
In the Select Certificate dialog, select your certificate and click OK.
-
Será novamente exibida a caixa de diálogo Assinaturas digitais, na qual pode adicionar mais certificados. Clique em Aceitar para adicionar a chave pública ao ficheiro guardado.
Um documento assinado mostra um ícone na barra de estado. Pode ver o certificado clicando duas vezes no ícone da barra de estado.
The result of the signature validation is displayed in the status bar and within the Digital Signature dialog. Several documents and macro signatures can exist inside an ODF document. If there is a problem with one signature, then the validation result of that one signature is assumed for all signatures. That is, if there are ten valid signatures and one invalid signature, then the status bar and the status field in the dialog will flag the signature as invalid.
Assinar as macros dentro de um documento.
Por norma, as macros fazem parte de um documento. Se assinar um documento, as macros dentro do documento são assinadas automaticamente. Se pretende assinar apenas as macros, e não o documento, proceda como indicado em seguida:
-
Escolha Ferramentas - Macros - Assinatura digital.
-
Aplique a assinatura conforme descrito acima para documentos.
When you open the Basic IDE that contains signed macros, you see an icon in the status bar.
You can double-click the icon in the status bar to view the certificate.