{"id":167,"date":"2018-05-20T10:25:14","date_gmt":"2018-05-20T10:25:14","guid":{"rendered":"https:\/\/agency.oceanwp.org\/?post_type=ocean_portfolio&#038;p=167"},"modified":"2022-02-07T05:02:35","modified_gmt":"2022-02-07T05:02:35","slug":"nunc-posuere","status":"publish","type":"ocean_portfolio","link":"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere","title":{"rendered":"Azure P2S VPN certificates"},"content":{"rendered":"<p>Refer to https:\/\/docs.microsoft.com\/en-us\/azure\/vpn-gateway\/vpn-gateway-certificates-point-to-site<\/p>\n<p>Root certificate:<\/p>\n<p>$cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature `<br \/>\n-Subject &#8220;CN=TestDate&#8221; -KeyExportPolicy Exportable `<br \/>\n-HashAlgorithm sha256 -KeyLength 2048 `<br \/>\n-CertStoreLocation &#8220;Cert:\\CurrentUser\\My&#8221; -KeyUsageProperty Sign -KeyUsage CertSign -NotAfter (Get-Date).AddYears(3)<\/p>\n<p>Client certificate:<\/p>\n<p>New-SelfSignedCertificate -Type Custom -DnsName P2SChildCert -KeySpec Signature `<br \/>\n-Subject &#8220;CN=Mclient&#8221; -KeyExportPolicy Exportable `<br \/>\n-HashAlgorithm sha256 -KeyLength 2048 `<br \/>\n-CertStoreLocation &#8220;Cert:\\CurrentUser\\My&#8221; `<br \/>\n-Signer $cert -TextExtension @(&#8220;2.5.29.37={text}1.3.6.1.5.5.7.3.2&#8221;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\tVivamus a tortor lorem. Sed sagittis in leo eu rhoncus. Morbi sed mi turpis. Phasellus tincidunt, libero in fermentum consectetur, tortor nulla vulputate elit, ac accumsan tortor\t\t<\/p>\n","protected":false},"author":1,"featured_media":213,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"ocean_portfolio_category":[8],"ocean_portfolio_tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Azure P2S VPN certificates - Barney Chen<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Azure P2S VPN certificates - Barney Chen\" \/>\n<meta property=\"og:description\" content=\"Vivamus a tortor lorem. Sed sagittis in leo eu rhoncus. Morbi sed mi turpis. Phasellus tincidunt, libero in fermentum consectetur, tortor nulla vulputate elit, ac accumsan tortor\" \/>\n<meta property=\"og:url\" content=\"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere\" \/>\n<meta property=\"og:site_name\" content=\"Barney Chen\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-07T05:02:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/barneychen.com\/wp-content\/uploads\/2018\/12\/img21.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"1875\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/barneychen.com\/#website\",\"url\":\"https:\/\/barneychen.com\/\",\"name\":\"Barney Chen\",\"description\":\"Just a personal blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/barneychen.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/barneychen.com\/wp-content\/uploads\/2018\/12\/img21.jpeg\",\"contentUrl\":\"https:\/\/barneychen.com\/wp-content\/uploads\/2018\/12\/img21.jpeg\",\"width\":1280,\"height\":1875},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#webpage\",\"url\":\"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere\",\"name\":\"Azure P2S VPN certificates - Barney Chen\",\"isPartOf\":{\"@id\":\"https:\/\/barneychen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#primaryimage\"},\"datePublished\":\"2018-05-20T10:25:14+00:00\",\"dateModified\":\"2022-02-07T05:02:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/barneychen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Azure P2S VPN certificates\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Azure P2S VPN certificates - Barney Chen","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere","og_locale":"en_US","og_type":"article","og_title":"Azure P2S VPN certificates - Barney Chen","og_description":"Vivamus a tortor lorem. Sed sagittis in leo eu rhoncus. Morbi sed mi turpis. Phasellus tincidunt, libero in fermentum consectetur, tortor nulla vulputate elit, ac accumsan tortor","og_url":"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere","og_site_name":"Barney Chen","article_modified_time":"2022-02-07T05:02:35+00:00","og_image":[{"width":1280,"height":1875,"url":"https:\/\/barneychen.com\/wp-content\/uploads\/2018\/12\/img21.jpeg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/barneychen.com\/#website","url":"https:\/\/barneychen.com\/","name":"Barney Chen","description":"Just a personal blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/barneychen.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#primaryimage","inLanguage":"en-US","url":"https:\/\/barneychen.com\/wp-content\/uploads\/2018\/12\/img21.jpeg","contentUrl":"https:\/\/barneychen.com\/wp-content\/uploads\/2018\/12\/img21.jpeg","width":1280,"height":1875},{"@type":"WebPage","@id":"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#webpage","url":"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere","name":"Azure P2S VPN certificates - Barney Chen","isPartOf":{"@id":"https:\/\/barneychen.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#primaryimage"},"datePublished":"2018-05-20T10:25:14+00:00","dateModified":"2022-02-07T05:02:35+00:00","breadcrumb":{"@id":"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/barneychen.com\/?ocean_portfolio=nunc-posuere#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/barneychen.com\/"},{"@type":"ListItem","position":2,"name":"Azure P2S VPN certificates"}]}]}},"_links":{"self":[{"href":"https:\/\/barneychen.com\/index.php?rest_route=\/wp\/v2\/ocean_portfolio\/167"}],"collection":[{"href":"https:\/\/barneychen.com\/index.php?rest_route=\/wp\/v2\/ocean_portfolio"}],"about":[{"href":"https:\/\/barneychen.com\/index.php?rest_route=\/wp\/v2\/types\/ocean_portfolio"}],"author":[{"embeddable":true,"href":"https:\/\/barneychen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/barneychen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=167"}],"version-history":[{"count":1,"href":"https:\/\/barneychen.com\/index.php?rest_route=\/wp\/v2\/ocean_portfolio\/167\/revisions"}],"predecessor-version":[{"id":448,"href":"https:\/\/barneychen.com\/index.php?rest_route=\/wp\/v2\/ocean_portfolio\/167\/revisions\/448"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/barneychen.com\/index.php?rest_route=\/wp\/v2\/media\/213"}],"wp:attachment":[{"href":"https:\/\/barneychen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167"}],"wp:term":[{"taxonomy":"ocean_portfolio_category","embeddable":true,"href":"https:\/\/barneychen.com\/index.php?rest_route=%2Fwp%2Fv2%2Focean_portfolio_category&post=167"},{"taxonomy":"ocean_portfolio_tag","embeddable":true,"href":"https:\/\/barneychen.com\/index.php?rest_route=%2Fwp%2Fv2%2Focean_portfolio_tag&post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}