{"id":1365,"date":"2025-10-10T14:53:38","date_gmt":"2025-10-10T07:53:38","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=1365"},"modified":"2025-11-12T14:23:24","modified_gmt":"2025-11-12T07:23:24","slug":"self-signed-certs","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/axws7\/developing\/self-signed-certs\/","title":{"rendered":"Self-Signed Certs"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"developing-locally-with-aspnet-under-https-ssl-and-self-signed-certs\">Developing locally with ASP.NET under HTTPS, SSL, and Self-Signed Certs<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sll-certs-ploblem\">SLL Certs Ploblem<\/h2>\n\n\n\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e2a\u0e31\u0e48\u0e07\u0e23\u0e31\u0e19\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04\u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07&nbsp;<code>dotnet run<\/code>&nbsp;\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e08\u0e33\u0e25\u0e2d\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e42\u0e14\u0e22\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e44\u0e14\u0e49\u0e17\u0e32\u0e07&nbsp;<code>HTTP<\/code>&nbsp;\u0e1c\u0e48\u0e32\u0e19\u0e1e\u0e2d\u0e23\u0e4c\u0e15&nbsp;<code>5000<\/code>&nbsp;\u0e41\u0e25\u0e30&nbsp;<code>HTTPS<\/code>&nbsp;\u0e1c\u0e48\u0e32\u0e19\u0e1e\u0e2d\u0e23\u0e4c\u0e15&nbsp;<code>5001<\/code><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>&#91;07:47:59 INF&#93; The output logging directory is: E:\\Projects\\FilesLocalStorage\\Logs\n&#91;07:47:59 INF&#93; Getting the AtlasX Web Service running...\n&#91;07:48:00 INF&#93; Telerik Reporting Temp Data: C:\\Users\\00xxxx\\Telerik Reporting Temp\n&#91;07:48:01 INF&#93; User profile is available. Using 'C:\\Users\\00xxxx\\AppData\\Local\\ASP.NET\\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.\n&#91;07:48:01 INF&#93; Now listening on: http:\/\/localhost:5000\n&#91;07:48:01 INF&#93; Now listening on: https:\/\/localhost:5001\n&#91;07:48:01 INF&#93; Application started. Press Ctrl+C to shut down.\n&#91;07:48:01 INF&#93; Hosting environment: Development\n&#91;07:48:01 INF&#93; Content root path: E:\\Projects\\MyDotNetProject<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #000000\">&#91;<\/span><span style=\"color: #098658\">07<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">47<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">59<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">INF<\/span><span style=\"color: #000000\">&#93; <\/span><span style=\"color: #001080\">The<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">output<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">logging<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">directory<\/span><span style=\"color: #000000\"> is: E:\\<\/span><span style=\"color: #001080\">Projects<\/span><span style=\"color: #000000\">\\<\/span><span style=\"color: #001080\">FilesLocalStorage<\/span><span style=\"color: #000000\">\\<\/span><span style=\"color: #001080\">Logs<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">&#91;<\/span><span style=\"color: #098658\">07<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">47<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">59<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">INF<\/span><span style=\"color: #000000\">&#93; <\/span><span style=\"color: #001080\">Getting<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">AtlasX<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Web<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Service<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">running<\/span><span style=\"color: #000000\">...<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">&#91;<\/span><span style=\"color: #098658\">07<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">48<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">00<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">INF<\/span><span style=\"color: #000000\">&#93; <\/span><span style=\"color: #001080\">Telerik<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Reporting<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Temp<\/span><span style=\"color: #000000\"> Data: C:\\<\/span><span style=\"color: #001080\">Users<\/span><span style=\"color: #000000\">\\00<\/span><span style=\"color: #001080\">xxxx<\/span><span style=\"color: #000000\">\\<\/span><span style=\"color: #001080\">Telerik<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Reporting<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Temp<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">&#91;<\/span><span style=\"color: #098658\">07<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">48<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">01<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">INF<\/span><span style=\"color: #000000\">&#93; <\/span><span style=\"color: #001080\">User<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">profile<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">is<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">available<\/span><span style=\"color: #000000\">. <\/span><span style=\"color: #001080\">Using<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #A31515\">&#39;C:<\/span><span style=\"color: #EE0000\">\\U<\/span><span style=\"color: #A31515\">sers<\/span><span style=\"color: #EE0000\">\\00<\/span><span style=\"color: #A31515\">xxxx<\/span><span style=\"color: #EE0000\">\\A<\/span><span style=\"color: #A31515\">ppData<\/span><span style=\"color: #EE0000\">\\L<\/span><span style=\"color: #A31515\">ocal<\/span><span style=\"color: #EE0000\">\\A<\/span><span style=\"color: #A31515\">SP.NET<\/span><span style=\"color: #EE0000\">\\D<\/span><span style=\"color: #A31515\">ataProtection-Keys&#39;<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #AF00DB\">as<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">key<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">repository<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">and<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">Windows<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">DPAPI<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">to<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">encrypt<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">keys<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">at<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">rest<\/span><span style=\"color: #000000\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">&#91;<\/span><span style=\"color: #098658\">07<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">48<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">01<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">INF<\/span><span style=\"color: #000000\">&#93; <\/span><span style=\"color: #001080\">Now<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">listening<\/span><span style=\"color: #000000\"> on: http:<\/span><span style=\"color: #008000\">\/\/localhost:5000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">&#91;<\/span><span style=\"color: #098658\">07<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">48<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">01<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">INF<\/span><span style=\"color: #000000\">&#93; <\/span><span style=\"color: #001080\">Now<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">listening<\/span><span style=\"color: #000000\"> on: https:<\/span><span style=\"color: #008000\">\/\/localhost:5001<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">&#91;<\/span><span style=\"color: #098658\">07<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">48<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">01<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">INF<\/span><span style=\"color: #000000\">&#93; <\/span><span style=\"color: #001080\">Application<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">started<\/span><span style=\"color: #000000\">. <\/span><span style=\"color: #001080\">Press<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Ctrl<\/span><span style=\"color: #000000\">+<\/span><span style=\"color: #0070C1\">C<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">to<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">shut<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">down<\/span><span style=\"color: #000000\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">&#91;<\/span><span style=\"color: #098658\">07<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">48<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">01<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">INF<\/span><span style=\"color: #000000\">&#93; <\/span><span style=\"color: #001080\">Hosting<\/span><span style=\"color: #000000\"> environment: <\/span><span style=\"color: #001080\">Development<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">&#91;<\/span><span style=\"color: #098658\">07<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">48<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">01<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">INF<\/span><span style=\"color: #000000\">&#93; <\/span><span style=\"color: #001080\">Content<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">root<\/span><span style=\"color: #000000\"> path: E:\\<\/span><span style=\"color: #001080\">Projects<\/span><span style=\"color: #000000\">\\<\/span><span style=\"color: #001080\">MyDotNetProject<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e23\u0e01\u0e47\u0e15\u0e32\u0e21\u0e16\u0e49\u0e32\u0e40\u0e23\u0e32\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07&nbsp;<a href=\"https:\/\/localhost:5001\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/localhost:5001<\/a>&nbsp;\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e08\u0e2d Error \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/portal-atlasx.cdg.co.th\/share\/Portal%20Docs\/Framework\/AXWS\/dotnet-dev-certs-browser-not-secure.png\" alt=\"Web browser display certs not secure\" title=\"null\"\/><\/figure>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e1e\u0e23\u0e32\u0e30\u0e40\u0e27\u0e47\u0e1a\u0e1a\u0e23\u0e32\u0e27\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e21\u0e2d\u0e07\u0e27\u0e48\u0e32\u0e43\u0e1a\u0e23\u0e31\u0e1a\u0e23\u0e2d\u0e07 SSL \u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e40\u0e2d\u0e07\u0e44\u0e21\u0e48\u0e19\u0e48\u0e32\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e16\u0e37\u0e2d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"trust-ssl-certs\">Trust SSL Certs<\/h2>\n\n\n\n<p>\u0e21\u0e35\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e43\u0e19&nbsp;<code>.NET<\/code>&nbsp;\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23 Certificate \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Developer \u0e40\u0e23\u0e35\u0e22\u0e01\u0e27\u0e48\u0e32&nbsp;<code>dev-certs<\/code><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>dotnet dev-certs https --help<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">dotnet<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">dev<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">certs<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">https<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">help<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Usage: dotnet dev-certs https &#91;options&#93;\n\nOptions:\n  -ep|--export-path  Full path to the exported certificate\n  -p|--password      Password to use when exporting the certificate with the private key into a pfx file or to encrypt the Pem exported key\n  -np|--no-password  Explicitly request that you don't use a password for the key when exporting a certificate to a PEM format\n  -c|--check         Check for the existence of the certificate but do not perform any action\n  --clean            Cleans all HTTPS development certificates from the machine.\n  -i|--import        Imports the provided HTTPS development certificate into the machine. All other HTTPS developer certificates will be cleared out\n  --format           Export the certificate in the given format. Valid values are Pfx and Pem. Pfx is the default.\n  -t|--trust         Trust the certificate on the current platform. When combined with the --check option, validates that the certificate is trusted.\n  -v|--verbose       Display more debug information.\n  -q|--quiet         Display warnings and errors only.\n  -h|--help          Show help information<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #000000\">Usage: <\/span><span style=\"color: #001080\">dotnet<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">dev<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">certs<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">https<\/span><span style=\"color: #000000\"> &#91;<\/span><span style=\"color: #001080\">options<\/span><span style=\"color: #000000\">&#93;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #000000\">Options:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  -<\/span><span style=\"color: #001080\">ep<\/span><span style=\"color: #000000\">|--<\/span><span style=\"color: #0000FF\">export<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">path<\/span><span style=\"color: #000000\">  <\/span><span style=\"color: #001080\">Full<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">path<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">to<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">exported<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">certificate<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  -<\/span><span style=\"color: #001080\">p<\/span><span style=\"color: #000000\">|--<\/span><span style=\"color: #001080\">password<\/span><span style=\"color: #000000\">      <\/span><span style=\"color: #001080\">Password<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">to<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">use<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">when<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">exporting<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">certificate<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #AF00DB\">with<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">private<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">key<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">into<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">a<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">pfx<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">file<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">or<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">to<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">encrypt<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Pem<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">exported<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">key<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  -<\/span><span style=\"color: #001080\">np<\/span><span style=\"color: #000000\">|--<\/span><span style=\"color: #001080\">no<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">password<\/span><span style=\"color: #000000\">  <\/span><span style=\"color: #001080\">Explicitly<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">request<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">that<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">you<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">don<\/span><span style=\"color: #A31515\">&#39;t use a password for the key when exporting a certificate to a PEM forma<\/span><span style=\"color: #CD3131\">t<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  -<\/span><span style=\"color: #001080\">c<\/span><span style=\"color: #000000\">|--<\/span><span style=\"color: #001080\">check<\/span><span style=\"color: #000000\">         <\/span><span style=\"color: #001080\">Check<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">for<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">existence<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">of<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">certificate<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">but<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #AF00DB\">do<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">not<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">perform<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">any<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">action<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  --<\/span><span style=\"color: #001080\">clean<\/span><span style=\"color: #000000\">            <\/span><span style=\"color: #001080\">Cleans<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">all<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">HTTPS<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">development<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">certificates<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">from<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">machine<\/span><span style=\"color: #000000\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  -<\/span><span style=\"color: #001080\">i<\/span><span style=\"color: #000000\">|--<\/span><span style=\"color: #AF00DB\">import<\/span><span style=\"color: #000000\">        <\/span><span style=\"color: #001080\">Imports<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">provided<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">HTTPS<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">development<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">certificate<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">into<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">machine<\/span><span style=\"color: #000000\">. <\/span><span style=\"color: #001080\">All<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">other<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">HTTPS<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">developer<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">certificates<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">will<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">be<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">cleared<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">out<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  --<\/span><span style=\"color: #001080\">format<\/span><span style=\"color: #000000\">           <\/span><span style=\"color: #001080\">Export<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">certificate<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">in<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">given<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">format<\/span><span style=\"color: #000000\">. <\/span><span style=\"color: #001080\">Valid<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">values<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">are<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Pfx<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">and<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">Pem<\/span><span style=\"color: #000000\">. <\/span><span style=\"color: #001080\">Pfx<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">is<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #AF00DB\">default<\/span><span style=\"color: #000000\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  -<\/span><span style=\"color: #001080\">t<\/span><span style=\"color: #000000\">|--<\/span><span style=\"color: #001080\">trust<\/span><span style=\"color: #000000\">         <\/span><span style=\"color: #001080\">Trust<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">certificate<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">on<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">current<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">platform<\/span><span style=\"color: #000000\">. <\/span><span style=\"color: #001080\">When<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">combined<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">with<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">check<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">option<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #001080\">validates<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">that<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">the<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">certificate<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">is<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">trusted<\/span><span style=\"color: #000000\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  -<\/span><span style=\"color: #001080\">v<\/span><span style=\"color: #000000\">|--<\/span><span style=\"color: #001080\">verbose<\/span><span style=\"color: #000000\">       <\/span><span style=\"color: #001080\">Display<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">more<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">debug<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">information<\/span><span style=\"color: #000000\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  -<\/span><span style=\"color: #001080\">q<\/span><span style=\"color: #000000\">|--<\/span><span style=\"color: #001080\">quiet<\/span><span style=\"color: #000000\">         <\/span><span style=\"color: #001080\">Display<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">warnings<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">and<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">errors<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">only<\/span><span style=\"color: #000000\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  -<\/span><span style=\"color: #001080\">h<\/span><span style=\"color: #000000\">|--<\/span><span style=\"color: #001080\">help<\/span><span style=\"color: #000000\">          <\/span><span style=\"color: #001080\">Show<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">help<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">information<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23 Trust Certificate \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Developer \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>dotnet dev-certs https --trust<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">dotnet<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">dev<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">certs<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">https<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">trust<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 \u0e08\u0e30\u0e21\u0e35\u0e1b\u0e4a\u0e2d\u0e1b\u0e2d\u0e31\u0e1b\u0e16\u0e32\u0e21\u0e27\u0e48\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e16\u0e37\u0e2d\u0e43\u0e1a\u0e23\u0e31\u0e1a\u0e23\u0e2d\u0e07 localhost \u0e19\u0e35\u0e49\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48 \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e15\u0e2d\u0e1a&nbsp;<code>Yes<\/code>&nbsp;\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e22\u0e2d\u0e21\u0e23\u0e31\u0e1a\u0e41\u0e25\u0e30\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e16\u0e37\u0e2d Certificate<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/portal-atlasx.cdg.co.th\/share\/Portal%20Docs\/Framework\/AXWS\/dotnet-dev-certs-trust-dialog.png\" alt=\"Web browser display certs not secure\" title=\"null\"\/><\/figure>\n\n\n\n<p>\u0e1b\u0e34\u0e14\u0e40\u0e27\u0e47\u0e1a\u0e1a\u0e23\u0e32\u0e27\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e41\u0e25\u0e49\u0e27\u0e1b\u0e34\u0e14\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07\u0e41\u0e25\u0e49\u0e27\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48&nbsp;<a href=\"https:\/\/localhost:5001\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/localhost:5001<\/a>&nbsp;\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e04\u0e33\u0e27\u0e48\u0e32&nbsp;<code>Secure<\/code>&nbsp;\u0e1a\u0e19 Address Bar<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/portal-atlasx.cdg.co.th\/share\/Portal%20Docs\/Framework\/AXWS\/dotnet-dev-certs-browser-secure.png\" alt=\"Web browser display certs secure\" title=\"null\"\/><\/figure>\n","protected":false},"featured_media":0,"parent":1361,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-1365","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=1365"}],"version-history":[{"count":2,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1365\/revisions"}],"predecessor-version":[{"id":3153,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1365\/revisions\/3153"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1361"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=1365"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=1365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}