• Sign in
 

LATAM Team blog

Search Blogs
Tags
  • Cloud
  • Cluster
  • Crash
  • Desarrollo
  • Desenvolvimento
  • Directory Services
  • DST
  • Español
  • Exchange/Outlook
  • Hang
  • High Availability
  • IIS
  • Networking
  • Office
  • People
  • Performance
  • Português
  • PowerShell Scripts
  • Security
  • Setup
  • Sharepoint
  • SQL
  • Virtualization
  • Windbg Scripts
  • Windows
Blog - News

Where Are You Coming From Today?

Where are you now?

Follow us on:

Options
  • Blog Home
  • About
  • Share this
  • RSS for posts
  • Atom
  • RSS for comments
Archive
Archives
  • May 2013 (4)
  • April 2013 (5)
  • March 2013 (6)
  • February 2013 (3)
  • January 2013 (3)
  • December 2012 (2)
  • November 2012 (1)
  • October 2012 (4)
  • September 2012 (5)
  • August 2012 (2)
  • July 2012 (2)
  • June 2012 (3)
  • May 2012 (13)
  • April 2012 (6)
  • March 2012 (6)
  • February 2012 (4)
  • January 2012 (7)
  • December 2011 (11)
  • October 2011 (6)
  • September 2011 (1)
  • August 2011 (3)
  • July 2011 (7)
  • June 2011 (6)
  • May 2011 (5)
  • April 2011 (2)
  • March 2011 (13)
  • February 2011 (1)
  • January 2011 (5)
  • December 2010 (6)
  • November 2010 (1)
  • October 2010 (6)
  • September 2010 (2)
  • August 2010 (3)
  • July 2010 (3)
  • June 2010 (5)
  • May 2010 (1)
  • April 2010 (10)
  • March 2010 (21)
  • February 2010 (8)
  • January 2010 (3)
  • December 2009 (5)
  • November 2009 (5)
  • October 2009 (6)
  • September 2009 (8)
  • August 2009 (9)
  • July 2009 (1)
  • June 2009 (3)
  • May 2009 (2)
  • April 2009 (7)
  • March 2009 (4)
  • February 2009 (7)
  • January 2009 (7)
  • December 2008 (8)
  • November 2008 (7)
  • October 2008 (22)
  • September 2008 (17)
  • August 2008 (13)
  • July 2008 (11)
  • June 2008 (7)
  • May 2008 (3)
  • April 2008 (2)
  • March 2008 (6)
  • January 2008 (4)
  • December 2007 (9)
  • November 2007 (4)
  • October 2007 (3)
  • September 2007 (8)
  • August 2007 (4)
  • July 2007 (2)
  • June 2007 (5)
  • May 2007 (7)
  • April 2007 (9)
  • March 2007 (7)
  • February 2007 (6)
  • January 2007 (4)
  • December 2006 (14)
  • November 2006 (10)
  • October 2006 (10)
  • September 2006 (11)
  • August 2006 (15)
  • July 2006 (7)
  • June 2006 (14)
  • May 2006 (22)
  • April 2006 (16)
  • March 2006 (20)
  • January 2006 (1)

Como renovar un certificado Self-Signed en Exchange 2007

TechNet Blogs > LATAM Team blog > Como renovar un certificado Self-Signed en Exchange 2007

Como renovar un certificado Self-Signed en Exchange 2007

LatamBlog
31 Dec 2008 3:28 PM
  • Comments 2

Por Daniel Seveso

Los certificados "Self-Signed" son certificados provisorios que permiten la comunicación segura y encripción de datos entre servidores de la organización inmediatamente luego de la instalación de Exchange. Estos certificados se crean y configuran durante la instalación de los roles de Exchange 2007, y los mismos expiran al año de su creación. Debido a sus limitaciones, la recomendación general es que luego de instalar Exchange, obtengas un certificado comercial o de una autoridad certificadora local.

Confirmando la expiración

Si estás usando un ambiente de laboratorio o simplemente no has reemplazado el certificado en tu ambiente de producción, y el certificado expira, verás los siguientes eventos en el log de aplicaciones:

 

Event Type:    Warning
Event Source:    MSExchangeTransport
Event Category:    TransportService
Event ID:    12015
Date:        12/31/2008
Time:        10:34:53 AM
User:        N/A
Computer:    NETE12-1
Description:
An internal transport certificate expired. Thumbprint:6C5EAB868FF1F052B2F04C177CFC2677B4E8CEBF

Event Type:    Error
Event Source:    MSExchangeTransport
Event Category:    TransportService
Event ID:    12014
Date:        12/31/2008
Time:        10:34:53 AM
User:        N/A
Computer:    NETE12-1
Description:
Microsoft Exchange couldn't find a certificate that contains the domain name NetE12-1.dseveso.net in the personal store on the local computer. Therefore, it is unable to support the STARTTLS SMTP verb for the connector Default NETE12-1 with a FQDN parameter of NetE12-1.dseveso.net. If the connector's FQDN is not specified, the computer's FQDN is used. Verify the connector configuration and the installed certificates to make sure that there is a certificate with a domain name for that FQDN. If this certificate exists, run Enable-ExchangeCertificate -Services SMTP to make sure that the Microsoft Exchange Transport service has access to the certificate key.

Lo primero que debes hacer es confirmar esta información obteniendo las propiedades del certificado. El Thumbprint es el atributo único del certificado que nos permite ubicarlo, y lo utilizamos para filtrar el siguiente comando:

 

[PS] C:\>Get-ExchangeCertificate | Where {$_.Thumbprint -eq "6C5EAB868FF1F052B2F04C177CFC2677B4E8CEBF"} |fl

AccessRules        : {System.Security.AccessControl.CryptoKeyAccessRule, System
                     .Security.AccessControl.CryptoKeyAccessRule, System.Securi
                     ty.AccessControl.CryptoKeyAccessRule}
CertificateDomains : {NetE12-1, NetE12-1.dseveso.net}
HasPrivateKey      : True
IsSelfSigned       : True
Issuer             : CN=NetE12-1
NotAfter           : 7/18/2008 7:27:32 AM
NotBefore          : 7/18/2007 7:27:32 AM
PublicKeySize      : 2048
RootCAType         : Unknown
SerialNumber       : 2672EF8DBF41B18246F520E7FC364890
Services           : IMAP, POP, IIS, SMTP
Status             : Invalid
Subject            : CN=NetE12-1
Thumbprint         : 6C5EAB868FF1F052B2F04C177CFC2677B4E8CEBF

Vemos que es un "Self-Signed" certificate, que su estado es inválido y que su fecha de expiración (NotAfter) es 7/18/2008.

En Exchange 2007 los certificados "Self-Signed" se emiten con dos nombres o "Subject Alternative Name", que corresponden a la propiedad "CertificateDomains" del comando anterior. Los mismos son el nombre de NetBIOS y el FQDN ( Fully Qualified Domain Name) del servidor.

Creando un nuevo certificado

Una vez confirmado que necesitamos un nuevo certificado, usamos el siguiente procedimiento para crear el nuevo certificado "Self-Signed".

  1. La forma más directa de crear el nuevo certificado es clonarlo. Significa que pasamos las propiedades del certificado expirado para crear el nuevo. El clonado del certificado lo haces con el siguiente comando:

    [PS] C:\>Get-ExchangeCertificate | Where {$_.Thumbprint -eq "6C5EAB868FF1F052B2F04C177CFC2677B4E8CEBF"} | New-ExchangeCertificate

    Recibirás el siguiente pedido de confirmación para reemplazar el certificado anterior, al cual responderás "y"

    Confirm
    Overwrite existing default SMTP certificate,'6C5EAB868FF1F052B2F04C177CFC2677B4E8CEBF' (expires 7/18/2008 7:27:32 AM), with certificate '813E2977C565866BFBA1EF660653F6128F5827E4' (expires 12/31/2009 12:27:46 PM)?

  2. Inspeccionamos las propiedades del nuevo certificado:

    [PS] C:\>Get-ExchangeCertificate | Where {$_.Thumbprint -eq "813E2977C565866BFBA1EF660653F6128F5827E4"} | fl
  3. AccessRules        : {System.Security.AccessControl.CryptoKeyAccessRule, System
                         .Security.AccessControl.CryptoKeyAccessRule, System.Securi
                         ty.AccessControl.CryptoKeyAccessRule}
    CertificateDomains : {NetE12-1, NetE12-1.dseveso.net}
    HasPrivateKey      : True
    IsSelfSigned       : True
    Issuer             : CN=NetE12-1
    NotAfter           : 12/31/2009 12:27:46 PM
    NotBefore          : 12/31/2008 12:27:46 PM
    PublicKeySize      : 2048
    RootCAType         : None
    SerialNumber       : 303583ADA3B6889E4C7B7F14CCB08578
    Services           : IMAP, POP, SMTP
    Status             : Valid
    Subject            : CN=NetE12-1
    Thumbprint         : 813E2977C565866BFBA1EF660653F6128F5827E4


  4. Como puedes notar en el parámetro "Services", el certificado no ha sido asociado al servicio Web (IIS). Para asociarlo, primero removemos el certificado expirado para evitar cualquier conflicto:

    [PS] C:\>Remove-ExchangeCertificate -Thumbprint 6C5EAB868FF1F052B2F04C177CFC2677B4E8CEBF

    Luego asocia el nuevo certificado con los servicios IMAP, POP, IIS y SMTP

    [PS] C:\>Enable-ExchangeCertificate -Thumbprint 813E2977C565866BFBA1EF660653F6128F5827E4 -Services IMAP, POP, IIS, SMTP

  5. Verifica el resultado de la asociación:
  6. [PS] C:\>Get-ExchangeCertificate | Where {$_.Thumbprint -eq "813E2977C565866BFBA1EF660653F6128F5827E4"} | fl

    AccessRules        : {System.Security.AccessControl.CryptoKeyAccessRule, System
                         .Security.AccessControl.CryptoKeyAccessRule, System.Securi
                         ty.AccessControl.CryptoKeyAccessRule}
    CertificateDomains : {NetE12-1, NetE12-1.dseveso.net}
    HasPrivateKey      : True
    IsSelfSigned       : True
    Issuer             : CN=NetE12-1
    NotAfter           : 12/31/2009 12:27:46 PM
    NotBefore          : 12/31/2008 12:27:46 PM
    PublicKeySize      : 2048
    RootCAType         : None
    SerialNumber       : 303583ADA3B6889E4C7B7F14CCB08578
    Services           : IMAP, POP, IIS, SMTP
    Status             : Valid
    Subject            : CN=NetE12-1
    Thumbprint         : 813E2977C565866BFBA1EF660653F6128F5827E4

 

Luego de recrear el certificado, ya no tendremos el mensaje de error inicial (al menos por el próximo año...)

 

Referencias

  • Understanding the Self-Signed Certificate in Exchange 2007
  • Certificate Use in Exchange Server 2007
  • 2 Comments
Exchange/Outlook, Español, Security
Comments
Comments
  • Wilmer
    7 Jan 2009 7:17 AM

    Esta perfecto y me funciona sin problema con la configuración del Outlook rpc/http, pero en los clientes Outlook del sitio local me presenta el siguiente error: "el nombre del certificado de seguridad no es válido o no coincide con el nombre del sitio", me pregunta si quiero continuar, selecciono que si, y continua trabajando sin problema, puede enviar como recibir correo, pero le aparece esa advertencia. agradeceria tu ayuda. De antemano gracias

  • LatamBlog
    26 Jan 2009 6:00 PM

    Hola wilmer,

    Es posible que el nombre con el que el cliente está contactando al servidor no sea el mismo que el nombre del certificado.

    Por ejemplo si tienes publicado el el CAS server con owa.company.com y tu CAS es cas1.company.com, te dará ese error.

    En general cuando publicas el nombre del CAS hacia afuera ya necesitas un certificado emitido por tu propia infraestructura PKI o por una entidad certificadora comercial.

    Espero que ayude!

    Daniel.

Page 1 of 1 (2 items)
  • © 2013 Microsoft Corporation.
  • Terms of Use
  • Trademarks
  • Privacy & Cookies
  • 5.6.426.415
  • TechNet
  • Products
  • IT Resources
  • Downloads
  • Training
  • Support
Products
  • Windows
  • Windows
    Server
  • System
    Center
  • Internet
    Explorer
 
  • Office
  • Office 365
  • Exchange
    Server
 
  • SQL Server
  • SharePoint
    Products
  • Lync
  • See all products »
Resources
  • Evaluation Center
  • Learning Resources
  • Microsoft IT Camps
  • Microsoft Technical Communities
  • Microsoft Virtual Academy
  • Script Center
  • Server and Tools Blogs
  • Solution Accelerators
  • TechNet Blogs
 
  • TechNet Flash Newsletter
  • TechNet Gallery
  • TechNet Library
  • TechNet Magazine
  • TechNet Subscriptions
  • TechNet Video
  • TechNet Wiki
  • Windows Sysinternals
  • Virtual Labs
Solutions
  • Networking
  • Cloud and Datacenter
  • Security
  • Virtualization
Updates
  • Service Packs
  • Security Bulletins
  • Microsoft Update
Trials
  • Windows Server 2012
  • System Center 2012 SP1
  • Microsoft SQL Server 2012 SP1
  • Windows 8 Enterprise
  • See all trials »
Related Sites
  • Microsoft Download Center
  • TechNet Evaluation Center
  • Drivers
  • Compatability & Converters
  • Windows Sysinternals
  • TechNet Gallery
Training
  • Training Catalog
  • Class Locator
  • Microsoft Virtual Academy
  • Free Windows Server 2012 courses
  • Free Windows 8 courses
  • SQL Server training
  • e-Learning overview
Certifications
  • Certification overview
  • MCSA: Windows 8
  • Windows Server Certification (MCSE)
  • Private Cloud Certification (MCSE)
  • SQL Server Certification (MCSE)
Other resources
  • TechNet Events
  • Second shot for certification
  • Born To Learn blog
  • IT Camps
Support by product
  • Exchange Server
  • Forefront Server
  • Forefront Edge Security
  • Forefront Server Security
  • Internet Explorer
  • Office
  • SharePoint
 
  • SQL Server
  • System Center
  • Windows Server
  • Windows XP
  • Windows Vista
  • Windows 7
  • Windows 8
Other support links
  • Microsoft Premier Online
  • Microsoft Fix It Center
  • TechNet Forums
  • MSDN Forums
  • Security Bulletins & Advisories
  • International support solutions
  • Log a support ticket
  • Look up event IDs and error codes
Not an IT pro?
  • Microsoft Customer Support
  • Microsoft Community Forums