IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Réseaux Discussion :

https valide sous domaine virtuel


Sujet :

Réseaux

  1. #1
    Membre habitué
    Inscrit en
    Janvier 2007
    Messages
    437
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 437
    Points : 184
    Points
    184
    Par défaut https valide sous domaine virtuel
    bonjour à tous

    je viens vers vous car je creer un site avec des sous domaine virtuel exemple :

    https://nom.domaine.fr qui est diriger donc vers un dossier grace a un htacces et les A *.domaine etc... est bien déclaré

    les redirection se fait correctement

    mon domaine principal fonctionne parfaitement en https

    mais les sous domaines virtuel ne fonctionne pas

    en https://nom.domaine.fr cela fonctionne pas

    Comment je peux faire pour que le https soit pris en compte y compris pour mes sous domaines ?

    j'ai un serveur dédié debian 9 apache 2

  2. #2
    Responsable Systèmes


    Homme Profil pro
    Gestion de parcs informatique
    Inscrit en
    Août 2011
    Messages
    17 428
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Gestion de parcs informatique
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Août 2011
    Messages : 17 428
    Points : 43 051
    Points
    43 051
    Par défaut
    Il te faut un certificat wildcard, qui fonctionnera pour n'importe quel sous-domaine.
    Ma page sur developpez.com : http://chrtophe.developpez.com/ (avec mes articles)
    Mon article sur le P2V, mon article sur le cloud
    Consultez nos FAQ : Windows, Linux, Virtualisation

  3. #3
    Membre habitué
    Inscrit en
    Janvier 2007
    Messages
    437
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 437
    Points : 184
    Points
    184
    Par défaut
    Bonsoir et merci de ta réponse

    apres une visite sur le site https://blog.blaisot.org/letsencrypt...ard-part1.html


    voila ce que j'ai fait, et cela ne fonctionne pas :/

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    root@ns395641:/opt/eff.org/certbot/venv/bin# ./certbot certonly --server https://acme-v02.api.letsencrypt.org/directory \
    > --manual -d '*.tesdemuret.fr'
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator manual, Installer None
    Obtaining a new certificate
    Performing the following challenges:
    dns-01 challenge for tesdemuret.fr
    
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NOTE: The IP of this machine will be publicly logged as having requested this
    certificate. If you're running certbot in manual mode on a machine that is not
    your server, please ensure you're okay with that.
    
    Are you OK with your IP being logged?
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    (Y)es/(N)o: Y
    
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Please deploy a DNS TXT record under the name
    _acme-challenge.tesdemuret.fr with the following value:
    
    P4NRTZkrq2Ozc8ucJrQtiAxrwvjxVxb0elXLUVyRMnE
    
    Before continuing, verify the record is deployed.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Press Enter to Continue
    Waiting for verification...
    Challenge failed for domain tesdemuret.fr
    dns-01 challenge for tesdemuret.fr
    Cleaning up challenges
    Some challenges have failed.
    
    IMPORTANT NOTES:
     - The following errors were reported by the server:
    
       Domain: tesdemuret.fr
       Type:   unauthorized
       Detail: No TXT record found at _acme-challenge.tesdemuret.fr
    
       To fix these errors, please make sure that your domain name was
       entered correctly and the DNS A/AAAA record(s) for that domain
       contain(s) the right IP address.
    root@ns395641:/opt/eff.org/certbot/venv/bin# ./certbot certonly https://acme-v02.api.letsencrypt.org/directory \
    > --manual -d '*.tesdemuret.fr'
    usage:
      certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
    
    Certbot can obtain and install HTTPS/TLS/SSL certificates.  By default,
    it will attempt to use a webserver both for obtaining and installing the
    certificate.
    certbot: error: unrecognized arguments: https://acme-v02.api.letsencrypt.org/directory
    root@ns395641:/opt/eff.org/certbot/venv/bin# certbot -d '*tesdemuret.fr'
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator apache, Installer apache
    Attempting to parse the version 0.34.2 renewal configuration file found at /etc/letsencrypt/renewal/tesdemuret.fr-0003.conf with version 0.28.0 of Certbot. This might not work.
    Attempting to parse the version 0.34.2 renewal configuration file found at /etc/letsencrypt/renewal/ns395641.ip-176-31-120.eu.conf with version 0.28.0 of Certbot. This might not work.
    Obtaining a new certificate
    An unexpected error occurred:
    The request message was malformed :: Error creating new order :: DNS name had a malformed wildcard label
    Please see the logfiles in /var/log/letsencrypt for more details.
    root@ns395641:/opt/eff.org/certbot/venv/bin# certbot *tesdemuret.fr
    usage:
      certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
    
    Certbot can obtain and install HTTPS/TLS/SSL certificates.  By default,
    it will attempt to use a webserver both for obtaining and installing the
    certificate.
    certbot: error: unrecognized arguments: *tesdemuret.fr
    root@ns395641:/opt/eff.org/certbot/venv/bin# cerbot *.tesdemuret.fr
    -bash: cerbot : commande introuvable
    root@ns395641:/opt/eff.org/certbot/venv/bin# certbot *.tesdemuret.fr
    usage:
      certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
    
    Certbot can obtain and install HTTPS/TLS/SSL certificates.  By default,
    it will attempt to use a webserver both for obtaining and installing the
    certificate.
    certbot: error: unrecognized arguments: *.tesdemuret.fr
    root@ns395641:/opt/eff.org/certbot/venv/bin#

  4. #4
    Responsable Systèmes


    Homme Profil pro
    Gestion de parcs informatique
    Inscrit en
    Août 2011
    Messages
    17 428
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Gestion de parcs informatique
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Août 2011
    Messages : 17 428
    Points : 43 051
    Points
    43 051
    Par défaut
    Regardes ceci.
    Ma page sur developpez.com : http://chrtophe.developpez.com/ (avec mes articles)
    Mon article sur le P2V, mon article sur le cloud
    Consultez nos FAQ : Windows, Linux, Virtualisation

Discussions similaires

  1. Réponses: 2
    Dernier message: 16/04/2008, 15h27
  2. [URL Rewriting] Sous-domaines virtuels ?
    Par Ikonic dans le forum Apache
    Réponses: 2
    Dernier message: 10/04/2008, 11h42
  3. sous domaines virtuels ?
    Par AsQuel dans le forum Domaines
    Réponses: 3
    Dernier message: 07/08/2007, 18h13
  4. Sous domaine virtuel par Htaccess
    Par Nicolas N. dans le forum Apache
    Réponses: 2
    Dernier message: 16/07/2007, 13h06
  5. Sous domaines virtuels
    Par Kael dans le forum Ruby on Rails
    Réponses: 1
    Dernier message: 06/01/2007, 17h59

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo