%3CLINGO-SUB%20id%3D%22lingo-sub-2083065%22%20slang%3D%22en-US%22%3ECertificate%20use%20with%20Azure%20Sphere%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2083065%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20you%E2%80%99re%20probably%20aware%2C%20Microsoft%20is%20in%20the%20process%20of%20updating%20Azure%20services%20to%20use%20TLS%20certificates%20from%20a%20different%20set%20of%20root%20certificate%20authorities%20(root%20CAs).%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fsecurity%2Ffundamentals%2Ftls-certificate-changes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20TLS%20Certificate%20Changes%3C%2FA%3E%20provides%20details%20about%20these%20updates.%20Some%20of%20these%20changes%20affect%20Azure%20Sphere%2C%20but%20in%20most%20cases%20no%20action%20is%20required%20for%20Azure%20Sphere%20customers.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20post%20provides%20a%20primer%20about%20the%20Azure%20Sphere%20certificate%20%E2%80%9Clandscape%E2%80%9D%3A%20the%20types%20of%20certificates%20that%20the%20various%20Azure%20Sphere%20components%20use%2C%20where%20they%20come%20from%2C%20where%20they%E2%80%99re%20stored%2C%20how%20they%E2%80%99re%20updated%2C%20and%20how%20to%20access%20them%20when%20necessary.%20Furthermore%2C%20it%20also%20describes%20how%20the%20Azure%20Sphere%20OS%2C%20SDK%2C%20and%20services%20make%20certificate%20management%20easier%20for%20you.%20We%20assume%20you%20have%20a%20basic%20familiarity%20with%20certificate%20authorities%20and%20the%20chain%20of%20trust.%20If%20this%20is%20all%20new%20to%20you%2C%20we%20suggest%20starting%20with%20%3CA%20href%3D%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCertificate_authority%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ECertificate%20authority%20-%20Wikipedia%3C%2FA%3E%20or%20other%20internet%20sources.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1947901846%22%20id%3D%22toc-hId-1947901850%22%3EAzure%20Sphere%20Devices%3C%2FH3%3E%0A%3CP%3EEvery%20Azure%20Sphere%20device%20relies%20on%20the%20Trusted%20Root%20Store%2C%20which%20is%20part%20of%20the%20Azure%20Sphere%20OS.%20The%20Trusted%20Root%20Store%20contains%20a%20list%20of%20root%20certificates%20that%20are%20used%20to%20validate%20the%20identity%20of%20the%20Azure%26nbsp%3BSphere%20Security%20Service%20when%20the%20device%20connects%20for%20device%20authentication%20and%20attestation%20(DAA)%2C%20over-the-air%20(OTA)%20update%2C%20or%20error%20reporting.%20These%20certificates%20are%20provided%20with%20the%20OS.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20daily%20attestation%20succeeds%2C%20the%20device%20receives%20two%20certificates%3A%20an%20%3CEM%3Eupdate%20certificate%3C%2FEM%3E%20and%20a%20%3CEM%3Ecustomer%20certificate%3C%2FEM%3E.%20The%20%3CEM%3Eupdate%20certificate%3C%2FEM%3E%20enables%20the%20device%20to%20connect%20to%20the%20Azure%20Sphere%20Update%20Service%20to%20get%20software%20updates%20and%20to%20upload%20error%20reports%3B%20it%20is%20not%20accessible%20to%20applications%20or%20through%20the%20command%20line.%20The%20%3CEM%3Ecustomer%20certificate%3C%2FEM%3E%2C%20sometimes%20called%20the%20%3CEM%3EDAA%20certificate%3C%2FEM%3E%2C%20can%20be%20used%20by%20applications%20to%20connect%20to%20third-party%20services%20such%20wolfSSL%20that%20use%20transport%20layer%20security%20(TLS).%20This%20certificate%20is%20valid%20for%20about%2025%20hours.%20Applications%20can%20retrieve%20it%20programmatically%20by%20calling%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure-sphere%2Freference%2Fapplibs-reference%2Ftlsutils%2Ffunction-deviceauth-getcertificatepath%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3EDeviceAuth_GetCertificatePath%3C%2FSTRONG%3E%20function%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDevices%20that%20connect%20to%20Azure-based%20services%20such%20as%20Azure%20IoT%20Hub%2C%20IoT%20Central%2C%20IoT%20Edge%20must%20present%20their%20Azure%20Sphere%20tenant%20CA%20certificate%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure-sphere%2Fapp-development%2Fuse-azure-iot%3Fbranch%3Dmaster%23authenticate-your-azure-sphere-tenant%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eauthenticate%20their%20Azure%20Sphere%20tenant%3C%2FA%3E.%20The%20%3CSTRONG%3Eazsphere%20ca-certificate%20download%3C%2FSTRONG%3E%20command%20in%20the%20CLI%20returns%20the%20tenant%20CA%20certificate%20for%20such%20uses.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-140447383%22%20id%3D%22toc-hId-140447387%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1667007080%22%20id%3D%22toc-hId--1667007076%22%3EEAP-TLS%20network%20connections%3C%2FH3%3E%0A%3CP%3EDevices%20that%20connect%20to%20an%20EAP-TLS%20network%20need%20certificates%20to%20authenticate%20with%20the%20network%E2%80%99s%20RADIUS%20server.%20To%20authenticate%20as%20a%20client%2C%20the%20device%20must%20pass%20a%20client%20certificate%20to%20the%20RADIUS.%20To%20perform%20mutual%20authentication%2C%20the%20device%20must%20also%20have%20a%20root%20CA%20certificate%20for%20the%20RADIUS%20server%20so%20that%20it%20can%20authenticate%20the%20server.%20Microsoft%20does%20not%20supply%20either%20of%20these%20certificates%3B%20you%20or%20your%20network%20administrator%20is%20responsible%20for%20ascertaining%20the%20correct%20certificate%20authority%20for%20your%20network%E2%80%99s%20RADIUS%20server%20and%20then%20acquiring%20the%20necessary%20certificates%20from%20the%20issuer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20obtain%20the%20certificates%20for%20the%20RADIUS%20server%2C%20you%E2%80%99ll%20need%20to%20authenticate%20to%20the%20certificate%20authority.%20You%20can%20use%20the%20DAA%20certificate%2C%20as%20previously%20mentioned%2C%20for%20this%20purpose.%20After%20acquiring%20the%20certificates%20for%20the%20RADIUS%20server%2C%20you%20should%20store%20them%20in%20the%20device%20certificate%20store.%20The%20device%20certificate%20store%20is%20available%20only%20for%20use%20in%20authenticating%20to%20a%20secured%20network%20with%20EAP-TLS.%20(The%20DAA%20certificate%20is%20not%20kept%20in%20the%20device%20certificate%20store%3B%20it%20is%20kept%20securely%20in%20the%20OS.)%20The%20%3CSTRONG%3Eazsphere%20device%20certificate%3C%2FSTRONG%3E%20command%20in%20the%20CLI%20lets%20you%20manage%20the%20certificate%20store%20from%20the%20command%20line.%20Azure%20Sphere%20applications%20can%20use%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure-sphere%2Freference%2Fapplibs-reference%2Fapplibs-certstore%2Fcertstore-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECertStore%20API%3C%2FA%3E%20to%20store%2C%20retrieve%2C%20and%20manage%20certificates%20in%20the%20device%20certificate%20store.%20The%20CertStore%20API%20also%20includes%20functions%20to%20return%20information%20about%20individual%20certificates%2C%20so%20that%20apps%20can%20prepare%20for%20certificate%20expiration%20and%20renewal.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESee%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure-sphere%2Fnetwork%2Feap-tls-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EUse%20EAP-TLS%3C%2FA%3E%20in%20the%20online%20documentation%20for%20a%20full%20description%20of%20the%20certificates%20used%20in%20EAP-TLS%20networking%2C%20and%20see%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Finternet-of-things%2Fsecure-enterprise-wi-fi-access-eap-tls-on-azure-sphere%2Fba-p%2F1506375%22%20target%3D%22_blank%22%3ESecure%20enterprise%20Wi-Fi%20access%3A%20EAP-TLS%20on%20Azure%20Sphere%3C%2FA%3E%20on%20Microsoft%20Tech%20Community%20for%20additional%20information.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-820505753%22%20id%3D%22toc-hId-820505757%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--986948710%22%20id%3D%22toc-hId--986948706%22%3EAzure%20Sphere%20Applications%3C%2FH3%3E%0A%3CP%3EAzure%20Sphere%20applications%20need%20certificates%20to%20authenticate%20to%20web%20services%20and%20some%20networks.%20Depending%20on%20the%20requirements%20of%20the%20service%20or%20endpoint%2C%20an%20app%20may%20use%20either%20the%20DAA%20certificate%20or%20a%20certificate%20from%20an%20external%20certificate%20authority.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EApps%20that%20connect%20to%20a%20third-party%20service%20using%20wolfSSL%20or%20a%20similar%20library%20can%20call%20the%20%3CSTRONG%3EDeviceAuth_GetCertificatePath%3C%2FSTRONG%3E%20function%20to%20get%20the%20DAA%20certificate%20for%20authentication.%20This%20function%20was%20introduced%20in%20the%20deviceauth.h%20header%20in%20the%2020.10%20SDK.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Azure%20IoT%20library%20that%20is%20built%20into%20Azure%20Sphere%20already%20trusts%20the%20necessary%20Root%20CA%2C%20so%20apps%20that%20use%20this%20library%20to%20access%20Azure%20IoT%20services%20(IoT%20Hub%2C%20IoT%20Central%2C%20DPS)%20do%20not%20require%20any%20additional%20certificates.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20your%20apps%20use%20other%20Azure%20services%2C%20check%20with%20the%20documentation%20for%20those%20services%20to%20determine%20which%20certificates%20are%20required.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1500564123%22%20id%3D%22toc-hId-1500564127%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--306890340%22%20id%3D%22toc-hId--306890336%22%3EAzure%20Sphere%20Public%20API%3C%2FH3%3E%0A%3CP%3EThe%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Frest%2Fapi%2Fazure-sphere%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Sphere%20Public%20API%20(PAPI)%3C%2FA%3E%20communicates%20with%20the%20Azure%20Sphere%20Security%20Service%20to%20request%20and%20retrieve%20information%20about%20deployed%20devices.%20The%20Security%20Service%20uses%20a%20TLS%20certificate%20to%20authenticate%20such%20connections.%20This%20means%20that%20any%20code%20or%20scripts%20that%20use%20the%20Public%20API%2C%20along%20with%20any%20other%20Security%20Service%20clients%20such%20as%20the%20Azure%20Sphere%20SDK%20(including%20both%20the%20v1%20and%20v2%20%3CSTRONG%3Eazsphere%3C%2FSTRONG%3E%20CLI)%2C%20must%20trust%20this%20certificate%20to%20be%20able%20to%20connect%20to%20the%20Security%20Service.%20The%20SDK%20uses%20the%20certificates%20in%20the%20host%20machine%E2%80%99s%20system%20certificate%20store%20for%20Azure%20Sphere%20Security%20Service%20validation%2C%20as%20do%20many%20Public%20API%20applications.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOn%20October%2013%2C%202020%20the%20Security%20Service%20updated%20its%20Public%20API%20TLS%20certificate%20to%20one%20issued%20from%20the%20DigiCert%20Global%20Root%20G2%20certificate.%20Both%20Windows%20and%20Linux%20systems%20include%20the%20DigiCert%20Global%20Root%20G2%20certificate%2C%20so%20the%20required%20certificate%20is%20readily%20available.%20However%2C%20as%20we%20described%20in%20an%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Finternet-of-things%2Fadditional-certificate-updates-for-azure-sphere%2Fba-p%2F1727037%22%20target%3D%22_blank%22%3Eearlier%20blog%20post%3C%2FA%3E%2C%20only%20customer%20scenarios%20that%20involved%20subject%2C%20name%2C%20or%20issuer%20(SNI)%20pinning%20required%20changes%20to%20accommodate%20this%20update.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--2114344803%22%20id%3D%22toc-hId--2114344799%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-373168030%22%20id%3D%22toc-hId-373168034%22%3EAzure%20Sphere%20Security%20Service%3C%2FH3%3E%0A%3CP%3EAzure%20Sphere%20cloud%20services%20in%20general%2C%20and%20the%20Security%20Service%20in%20particular%2C%20manage%20numerous%20certificates%20that%20are%20used%20in%20secure%20service-to-service%20communication.%20Most%20of%20these%20certificates%20are%20internal%20to%20the%20services%20and%20their%20clients%2C%20so%20Microsoft%20coordinates%20updates%20as%20required.%20For%20example%2C%20in%20addition%20to%20updating%20the%20Public%20API%20TLS%20certificate%20in%20October%2C%20the%20Azure%20Sphere%20Security%20Service%20also%20updated%20its%20TLS%20certificates%20for%20the%20DAA%20service%20and%20Update%20service.%20Prior%20to%20the%20update%2C%20devices%20received%20an%20OTA%20Update%20to%20the%20Trusted%20Root%20Store%20which%20included%20the%20new%20required%20root%20certificate.%20No%20customer%20action%20was%20necessary%20to%20maintain%20device%20communication%20with%20the%20Security%20Service.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1434286433%22%20id%3D%22toc-hId--1434286429%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-358062921%22%20id%3D%22toc-hId-358062925%22%3EHow%20does%20Azure%20Sphere%20make%20certificate%20changes%20easier%20for%20customers%3F%3C%2FH3%3E%0A%3CP%3ECertificate%20expiration%20is%20a%20common%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fwww.theregister.com%252F2020%252F06%252F10%252Fiot_trouble_root_certificates_expire%252F%26amp%3Bdata%3D04%257C01%257CPenny.Orwick%2540microsoft.com%257C38736c1c9b6e44b4952808d86c2c89f2%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637378285850739022%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3Dqd%252Fl2uvjA7yEyi7CnWpGw60eZGbNduNPxKaB9njWuQA%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ecause%20of%20failures%20for%20IoT%20Devices%3C%2FA%3E%20that%20Azure%20Sphere%20can%20prevent.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBecause%20the%20Azure%20Sphere%20product%20includes%20both%20the%20OS%20and%20the%20Security%20Service%2C%20the%20certificates%20used%20by%20both%20these%20components%20are%20managed%20by%20Microsoft.%20Devices%20receive%20updated%20certificates%20through%20the%20DAA%20process%2C%20OS%20and%20application%20updates%2C%20and%20error%20reporting%20without%20requiring%20changes%20in%20applications.%20When%20Microsoft%20added%20the%20DigiCert%20Global%20Root%20G2%20certificate%2C%20no%20customer%20changes%20were%20required%20to%20continue%20DAA%2C%20updates%2C%20or%20error%20reporting.%20Devices%20that%20were%20offline%20at%20the%20time%20of%20the%20update%20received%20the%20update%20as%20soon%20as%20they%20reconnected%20to%20the%20internet.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Azure%20Sphere%20OS%20also%20includes%20the%20Azure%20IoT%20library%2C%20so%20if%20Microsoft%20makes%20further%20changes%20to%20certificates%20that%20the%20Azure%20IoT%20libraries%20use%2C%20we%20will%20update%20the%20library%20in%20the%20OS%20so%20that%20your%20applications%20won%E2%80%99t%20need%20to%20be%20changed.%20We%E2%80%99ll%20also%20let%20you%20know%20through%20additional%20blog%20posts%20about%20any%20edge%20cases%20or%20special%20circumstances%20that%20might%20require%20modifications%20to%20your%20apps%20or%20scripts.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBoth%20of%20these%20cases%20show%20how%20Azure%20Sphere%20simplifies%20application%20management%20by%20removing%20the%20need%20for%20maintenance%20updates%20of%20applications%20to%20handle%20certificate%20changes.%20Because%20every%20device%20receives%20an%20update%20certificate%20as%20part%20of%20its%20daily%20attestation%2C%20you%20can%20easily%20manage%20the%20update%20of%20any%20locally-managed%20certificates%20your%20devices%20and%20applications%20use.%20For%20example%2C%20if%20your%20application%20validates%20the%20identity%20of%20your%20line-of-business%20server%20(as%20it%20should)%2C%20you%20can%20deploy%20an%20updated%20application%20image%20package%20that%20includes%20updated%20certificates.%20The%20application%20update%20services%20provided%20by%20the%20Azure%20Sphere%20platform%20delivers%20those%20updates%2C%20removing%20the%20worry%20that%20the%20update%20service%20itself%20will%20incur%20a%20certificate%20expiry%20issue.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1449391542%22%20id%3D%22toc-hId--1449391538%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-1038121291%22%20id%3D%22toc-hId-1038121295%22%3EFor%20more%20information%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2F19bestpractices%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EBest%20practices%20for%20implementing%20seven%20properties%20in%20Azure%20Sphere%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FDAA_paper%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Sphere%20Device%20Authentication%20and%20Attestation%20Service%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Finternet-of-things%2Fadditional-certificate-updates-for-azure-sphere%2Fba-p%2F1727037%22%20target%3D%22_blank%22%3EAdditional%20certificate%20updates%20for%20Azure%20Sphere%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fsecurity%2Ffundamentals%2Ftls-certificate-changes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20TLS%20Certificate%20Changes%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20style%3D%22font-family%3A%20inherit%3B%20background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Ftechcommunity.microsoft.com%252Ft5%252Finternet-of-things%252Fazure-iot-tls-changes-are-coming-and-why-you-should-care%252Fba-p%252F1658456%26amp%3Bdata%3D04%257C01%257CPenny.Orwick%2540microsoft.com%257C38736c1c9b6e44b4952808d86c2c89f2%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637378285850759009%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DFkji%252BMODBd%252Bmg%252FUvBseLxGpxucJnKwNywe0MiTjqhGc%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EAzure%20IoT%20TLS%3A%20Changes%20are%20coming!%20(%E2%80%A6and%20why%20you%20should%20care)%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2083065%22%20slang%3D%22en-US%22%3E%3CP%3EEverything%20you%20need%20to%20know%20about%20Microsoft%20TLS%20certificate%20updates%20to%20Azure%20services.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Annotation%202019-10-22%20123923.png%22%20style%3D%22width%3A%20958px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F248179i21E9DD1EEC2BF052%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Annotation%202019-10-22%20123923.png%22%20alt%3D%22Annotation%202019-10-22%20123923.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2083065%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eazure%20sphere%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIoT%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIoT%20security%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

As you’re probably aware, Microsoft is in the process of updating Azure services to use TLS certificates from a different set of root certificate authorities (root CAs). Azure TLS Certificate Changes provides details about these updates. Some of these changes affect Azure Sphere, but in most cases no action is required for Azure Sphere customers.

 

This post provides a primer about the Azure Sphere certificate “landscape”: the types of certificates that the various Azure Sphere components use, where they come from, where they’re stored, how they’re updated, and how to access them when necessary. Furthermore, it also describes how the Azure Sphere OS, SDK, and services make certificate management easier for you. We assume you have a basic familiarity with certificate authorities and the chain of trust. If this is all new to you, we suggest starting with Certificate authority - Wikipedia or other internet sources.

 

Azure Sphere Devices

Every Azure Sphere device relies on the Trusted Root Store, which is part of the Azure Sphere OS. The Trusted Root Store contains a list of root certificates that are used to validate the identity of the Azure Sphere Security Service when the device connects for device authentication and attestation (DAA), over-the-air (OTA) update, or error reporting. These certificates are provided with the OS.

 

When daily attestation succeeds, the device receives two certificates: an update certificate and a customer certificate. The update certificate enables the device to connect to the Azure Sphere Update Service to get software updates and to upload error reports; it is not accessible to applications or through the command line. The customer certificate, sometimes called the DAA certificate, can be used by applications to connect to third-party services such wolfSSL that use transport layer security (TLS). This certificate is valid for about 25 hours. Applications can retrieve it programmatically by calling the DeviceAuth_GetCertificatePath function.

 

Devices that connect to Azure-based services such as Azure IoT Hub, IoT Central, IoT Edge must present their Azure Sphere tenant CA certificate to authenticate their Azure Sphere tenant. The azsphere ca-certificate download command in the CLI returns the tenant CA certificate for such uses.

 

EAP-TLS network connections

Devices that connect to an EAP-TLS network need certificates to authenticate with the network’s RADIUS server. To authenticate as a client, the device must pass a client certificate to the RADIUS. To perform mutual authentication, the device must also have a root CA certificate for the RADIUS server so that it can authenticate the server. Microsoft does not supply either of these certificates; you or your network administrator is responsible for ascertaining the correct certificate authority for your network’s RADIUS server and then acquiring the necessary certificates from the issuer.

 

To obtain the certificates for the RADIUS server, you’ll need to authenticate to the certificate authority. You can use the DAA certificate, as previously mentioned, for this purpose. After acquiring the certificates for the RADIUS server, you should store them in the device certificate store. The device certificate store is available only for use in authenticating to a secured network with EAP-TLS. (The DAA certificate is not kept in the device certificate store; it is kept securely in the OS.) The azsphere device certificate command in the CLI lets you manage the certificate store from the command line. Azure Sphere applications can use the CertStore API to store, retrieve, and manage certificates in the device certificate store. The CertStore API also includes functions to return information about individual certificates, so that apps can prepare for certificate expiration and renewal.

 

See Use EAP-TLS in the online documentation for a full description of the certificates used in EAP-TLS networking, and see Secure enterprise Wi-Fi access: EAP-TLS on Azure Sphere on Microsoft Tech Community for additional information.

 

Azure Sphere Applications

Azure Sphere applications need certificates to authenticate to web services and some networks. Depending on the requirements of the service or endpoint, an app may use either the DAA certificate or a certificate from an external certificate authority.

 

Apps that connect to a third-party service using wolfSSL or a similar library can call the DeviceAuth_GetCertificatePath function to get the DAA certificate for authentication. This function was introduced in the deviceauth.h header in the 20.10 SDK.

 

The Azure IoT library that is built into Azure Sphere already trusts the necessary Root CA, so apps that use this library to access Azure IoT services (IoT Hub, IoT Central, DPS) do not require any additional certificates.

 

If your apps use other Azure services, check with the documentation for those services to determine which certificates are required.

 

Azure Sphere Public API

The Azure Sphere Public API (PAPI) communicates with the Azure Sphere Security Service to request and retrieve information about deployed devices. The Security Service uses a TLS certificate to authenticate such connections. This means that any code or scripts that use the Public API, along with any other Security Service clients such as the Azure Sphere SDK (including both the v1 and v2 azsphere CLI), must trust this certificate to be able to connect to the Security Service. The SDK uses the certificates in the host machine’s system certificate store for Azure Sphere Security Service validation, as do many Public API applications.

 

On October 13, 2020 the Security Service updated its Public API TLS certificate to one issued from the DigiCert Global Root G2 certificate. Both Windows and Linux systems include the DigiCert Global Root G2 certificate, so the required certificate is readily available. However, as we described in an earlier blog post, only customer scenarios that involved subject, name, or issuer (SNI) pinning required changes to accommodate this update.

 

Azure Sphere Security Service

Azure Sphere cloud services in general, and the Security Service in particular, manage numerous certificates that are used in secure service-to-service communication. Most of these certificates are internal to the services and their clients, so Microsoft coordinates updates as required. For example, in addition to updating the Public API TLS certificate in October, the Azure Sphere Security Service also updated its TLS certificates for the DAA service and Update service. Prior to the update, devices received an OTA Update to the Trusted Root Store which included the new required root certificate. No customer action was necessary to maintain device communication with the Security Service.

 

How does Azure Sphere make certificate changes easier for customers?

Certificate expiration is a common cause of failures for IoT Devices that Azure Sphere can prevent.

 

Because the Azure Sphere product includes both the OS and the Security Service, the certificates used by both these components are managed by Microsoft. Devices receive updated certificates through the DAA process, OS and application updates, and error reporting without requiring changes in applications. When Microsoft added the DigiCert Global Root G2 certificate, no customer changes were required to continue DAA, updates, or error reporting. Devices that were offline at the time of the update received the update as soon as they reconnected to the internet.

 

The Azure Sphere OS also includes the Azure IoT library, so if Microsoft makes further changes to certificates that the Azure IoT libraries use, we will update the library in the OS so that your applications won’t need to be changed. We’ll also let you know through additional blog posts about any edge cases or special circumstances that might require modifications to your apps or scripts.

 

Both of these cases show how Azure Sphere simplifies application management by removing the need for maintenance updates of applications to handle certificate changes. Because every device receives an update certificate as part of its daily attestation, you can easily manage the update of any locally-managed certificates your devices and applications use. For example, if your application validates the identity of your line-of-business server (as it should), you can deploy an updated application image package that includes updated certificates. The application update services provided by the Azure Sphere platform delivers those updates, removing the worry that the update service itself will incur a certificate expiry issue.

 

For more information