Difference between revisions of "FR/Documentation/Detection de certificat"
From Apache OpenOffice Wiki
< FR | Documentation
m (Catégorie et paramètre de tri.) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | Dans Windows, OOo utilise des certificats issus du stockage de clé du système. | |
− | + | Sur toutes les autres plateformes , OOo recherche le profil mozilla par défaut. | |
+ | |||
+ | L'ordre de recherche est : | ||
− | |||
1) Thunderbird | 1) Thunderbird | ||
2) Mozilla | 2) Mozilla | ||
3) Firefox | 3) Firefox | ||
− | 4) | + | 4) Defaut (Quoique cela veuille dire...) |
+ | |||
+ | Malheureusement il n'y a pas d'option pour choisir un autre profil, mais ce chemin peut être désigné avec la variable d'environnement MOZILLA_CERTIFICATE_FOLDER. | ||
− | |||
− | + | Vous pouvez tester cette détection avec ce petit script: | |
<pre> | <pre> | ||
Line 23: | Line 25: | ||
oMozBootstrap = createUnoService( "com.sun.star.mozilla.MozillaBootstrap" ) | oMozBootstrap = createUnoService( "com.sun.star.mozilla.MozillaBootstrap" ) | ||
− | sMsg = "OpenOffice.org | + | sMsg = "Détection du profil Mozilla par OpenOffice.org" + Chr$(10) + Chr$(10) |
CheckMozProfile( oMozBootstrap, "Thunderbird", com.sun.star.mozilla.MozillaProductType.Thunderbird, sMsg, sDefault ) | CheckMozProfile( oMozBootstrap, "Thunderbird", com.sun.star.mozilla.MozillaProductType.Thunderbird, sMsg, sDefault ) | ||
sMsg = sMsg + Chr$(10) | sMsg = sMsg + Chr$(10) | ||
Line 32: | Line 34: | ||
CheckMozProfile( oMozBootstrap, "Default", com.sun.star.mozilla.MozillaProductType.Default, sMsg, sDefault ) | CheckMozProfile( oMozBootstrap, "Default", com.sun.star.mozilla.MozillaProductType.Default, sMsg, sDefault ) | ||
sMsg = sMsg + Chr$(10) | sMsg = sMsg + Chr$(10) | ||
− | sMsg = sMsg + " | + | sMsg = sMsg + "Le premier chemin détecté sera celui utilisé pour les certificats:" + Chr$(10) |
if Len( sDefault ) > 0 Then | if Len( sDefault ) > 0 Then | ||
sMsg = sMsg + sDefault | sMsg = sMsg + sDefault | ||
else | else | ||
− | sMsg = sMsg + " | + | sMsg = sMsg + "Pas de profil trouvé !" |
end if | end if | ||
− | sMsg = sMsg + Chr$(10) + Chr$(10) + " | + | sMsg = sMsg + Chr$(10) + Chr$(10) + "Vous pouvez désigner le bon chemin par la variable d'environnement MOZILLA_CERTIFICATE_FOLDER" + Chr$(10) + " " |
Line 49: | Line 51: | ||
Dim sPath as String | Dim sPath as String | ||
− | sMsg = sMsg + TypeName + ":" + Chr$(10) + " | + | sMsg = sMsg + TypeName + ":" + Chr$(10) + "Nom du profil: " |
sProfile = oMozBootstrap.getDefaultProfile(TypeID) | sProfile = oMozBootstrap.getDefaultProfile(TypeID) | ||
if Len( sProfile ) > 0 Then | if Len( sProfile ) > 0 Then | ||
Line 60: | Line 62: | ||
else | else | ||
− | sMsg = sMsg + " | + | sMsg = sMsg + "PAS TROUVE" + Chr$(10) |
endif | endif | ||
End Sub | End Sub | ||
</pre> | </pre> | ||
− | + | Lancer ce code vous donnera toutes les informations dont vous aurez besoin pour modifier la variable d'environnement MOZILLA_CERTIFICATE_FOLDER. | |
[[Image:DigitalSignature.png|center]] | [[Image:DigitalSignature.png|center]] | ||
− | + | Si vous choississez Firefox lancez : | |
<pre> | <pre> | ||
export MOZILLA_CERTIFICATE_FOLDER=~/.mozilla/firefox/u1f6p56r.default | export MOZILLA_CERTIFICATE_FOLDER=~/.mozilla/firefox/u1f6p56r.default | ||
</pre> | </pre> | ||
− | + | Avant de demarrer OOo ou modifiez le fichier office.sh. | |
− | = | + | = Voir aussi= |
* [[Comment_utiliser_une_signature_numerique|Comment utiliser une signature numerique]] | * [[Comment_utiliser_une_signature_numerique|Comment utiliser une signature numerique]] | ||
* [http://blogs.sun.com/roller/page/dancer/20050308 Just switch! - Secure document exchange with StarOffice 8 ] | * [http://blogs.sun.com/roller/page/dancer/20050308 Just switch! - Secure document exchange with StarOffice 8 ] | ||
* [http://marketing.openoffice.org/ooocon2004/presentations/friday/timmermann_digital_signatures.pdf Digital signatures (SUN-pdf file)] | * [http://marketing.openoffice.org/ooocon2004/presentations/friday/timmermann_digital_signatures.pdf Digital signatures (SUN-pdf file)] | ||
+ | |||
+ | [[Category:FR/Documentation/Generale|Certificat]] |
Latest revision as of 10:23, 15 May 2009
Dans Windows, OOo utilise des certificats issus du stockage de clé du système.
Sur toutes les autres plateformes , OOo recherche le profil mozilla par défaut.
L'ordre de recherche est :
1) Thunderbird 2) Mozilla 3) Firefox 4) Defaut (Quoique cela veuille dire...)
Malheureusement il n'y a pas d'option pour choisir un autre profil, mais ce chemin peut être désigné avec la variable d'environnement MOZILLA_CERTIFICATE_FOLDER.
Vous pouvez tester cette détection avec ce petit script:
Option Explicit Sub MozProfile Dim oMozBootstrap as Object Dim sMsg as String Dim sDefault as String oMozBootstrap = createUnoService( "com.sun.star.mozilla.MozillaBootstrap" ) sMsg = "Détection du profil Mozilla par OpenOffice.org" + Chr$(10) + Chr$(10) CheckMozProfile( oMozBootstrap, "Thunderbird", com.sun.star.mozilla.MozillaProductType.Thunderbird, sMsg, sDefault ) sMsg = sMsg + Chr$(10) CheckMozProfile( oMozBootstrap, "Mozilla", com.sun.star.mozilla.MozillaProductType.Mozilla, sMsg, sDefault ) sMsg = sMsg + Chr$(10) CheckMozProfile( oMozBootstrap, "Firefox", com.sun.star.mozilla.MozillaProductType.Firefox, sMsg, sDefault ) sMsg = sMsg + Chr$(10) CheckMozProfile( oMozBootstrap, "Default", com.sun.star.mozilla.MozillaProductType.Default, sMsg, sDefault ) sMsg = sMsg + Chr$(10) sMsg = sMsg + "Le premier chemin détecté sera celui utilisé pour les certificats:" + Chr$(10) if Len( sDefault ) > 0 Then sMsg = sMsg + sDefault else sMsg = sMsg + "Pas de profil trouvé !" end if sMsg = sMsg + Chr$(10) + Chr$(10) + "Vous pouvez désigner le bon chemin par la variable d'environnement MOZILLA_CERTIFICATE_FOLDER" + Chr$(10) + " " MsgBox sMsg,64 End Sub Sub CheckMozProfile( oMozBootstrap, TypeName, TypeID, sMsg, sDefault ) Dim sProfile as String Dim sPath as String sMsg = sMsg + TypeName + ":" + Chr$(10) + "Nom du profil: " sProfile = oMozBootstrap.getDefaultProfile(TypeID) if Len( sProfile ) > 0 Then sMsg = sMsg + sProfile sPath = oMozBootstrap.getProfilePath(TypeID, sProfile ) sMsg = sMsg + Chr$(10) + "Profile path: " + sPath + Chr$(10) if Len( sDefault ) = 0 Then sDefault = sPath end if else sMsg = sMsg + "PAS TROUVE" + Chr$(10) endif End Sub
Lancer ce code vous donnera toutes les informations dont vous aurez besoin pour modifier la variable d'environnement MOZILLA_CERTIFICATE_FOLDER.
Si vous choississez Firefox lancez :
export MOZILLA_CERTIFICATE_FOLDER=~/.mozilla/firefox/u1f6p56r.default
Avant de demarrer OOo ou modifiez le fichier office.sh.