<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>windows &#8211; CodePills.com</title>
	<atom:link href="https://codepills.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>https://codepills.com</link>
	<description>Helping you make a better code</description>
	<lastBuildDate>Sat, 30 Mar 2024 13:46:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How to connect to an EC2 instance over SSH</title>
		<link>https://codepills.com/how-to-connect-to-an-ec2-instance-over-ssh/</link>
					<comments>https://codepills.com/how-to-connect-to-an-ec2-instance-over-ssh/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Fri, 01 Mar 2024 09:10:48 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[EC2 instance]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[PuTTYgen]]></category>
		<category><![CDATA[remote access]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSH client]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">https://codepills.com/?p=1412</guid>

					<description><![CDATA[The article outlines connecting to an Amazon EC2 instance via SSH, detailing prerequisites and steps for Unix-based systems as well as Windows users, including PuTTY private key conversion. <a href="https://codepills.com/how-to-connect-to-an-ec2-instance-over-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>This article is a simple guide detailing the prerequisites and step-by-step procedures for connecting to EC2 instances via SSH. It covers Unix-based systems and Windows users, including the conversion of private key files for PuTTY.</p>
<p><span id="more-1412"></span></p>
<h2>Introduction</h2>
<p>SSH (Secure Shell) is a popular, secure protocol for remote access to servers and other network devices. When you launch an EC2 instance, you can connect to it using SSH to manage the server, install and update software, configure settings, and perform other administrative tasks.</p>
<ul>
<li id="prerequisites">Prerequisites</li>
<li id="connecting-over-unix-based-systems">Connecting over Unix-based systems</li>
<li id="connecting-over-windows">Connecting over Windows</li>
</ul>
<h2 id="prerequisites">Prerequisites</h2>
<p>Before you can connect to an EC2 instance over SSH, you need the following:</p>
<ul>
<li>Running EC2 instance and accessible over the network.</li>
<li>The EC2 instance&#8217;s IP address or public DNS.</li>
<li>The appropriate security group configured to allow SSH access (port 22) from your IP address or network.</li>
<li>The private key file (.pem) corresponding to the key pair used when launching the instance.</li>
</ul>
<p>Remember to keep your private key file secure and not share it with anyone. It is the key to accessing your EC2 instance.</p>
<p>If you encounter any issues while connecting, double-check that your instance is running, that the security group allows SSH access from your IP address, or that you are using the correct private key file.</p>
<h2 id="connecting-over-unix-based-systems">Connecting over Unix-based systems</h2>
<p>To connect to your EC2 instance via SSH at Unix-based systems like Linux, macOS, or others, follow these steps:</p>
<h3>Locate the private key file</h3>
<p>Find the private key file (.pem) you downloaded when you created the EC2 instance.</p>
<p>Make sure you have the correct permissions to use the private key file. On Linux or macOS, you can set the permissions using the command:</p>
<pre><code class="language-bash">chmod 400 /path/to/your/private-key.pem</code></pre>
<h3>Connect to the EC2 instance using SSH</h3>
<p>Open a terminal or command prompt and use the `ssh` command to connect to your EC2 instance:</p>
<pre><code class="language-bash">ssh -i /path/to/your/private-key.pem ec2-user@&lt;public-dns-or-ip&gt;</code></pre>
<ul>
<li>Replace <code>/path/to/your/private-key.pem</code> with the real path to your private key file.</li>
<li>Replace <code>&lt;public-dns-or-ip&gt;</code> with the public DNS or IP address of your EC2 instance.</li>
<li>If you&#8217;re using a different username than <b>ec2-user</b> (e.g., for Ubuntu instances, it&#8217;s usually <b>ubuntu</b>), modify the command accordingly.</li>
</ul>
<p>Here&#8217;s an example of the SSH command:</p>
<pre><code class="language-bash"> ssh -i ~/Downloads/my-key-pair.pem ec2-user@ec2-1-25-67-980.us-west-2.compute.amazonaws.com</code></pre>
<h3>Accept the server&#8217;s host key</h3>
<p>If it&#8217;s your first time connecting to the instance, the server may prompt you to accept its host key. Type <i>yes</i> and press Enter to continue.</p>
<h3>Connection to EC2 instance</h3>
<p>Success! You should now have successfully connected to your EC2 instance via SSH.</p>
<h2 id="connecting-over-windows">Connecting over Windows</h2>
<p>If you&#8217;re using Windows and don&#8217;t have the <code>ssh</code> command available, you can use an SSH client like PuTTY:</p>
<ul>
<li>First, convert your private key file (.pem) to a format compatible with PuTTY (.ppk) using PuTTYgen. If you do not know how, just <a href="#generating_a_ppk_file_from_a_pem_file">check the section below</a>.</li>
<li>Open PuTTY and enter the public IPv4 DNS or IP address of your EC2 instance in the <i>&#8220;Host Name (or IP address)&#8221;</i> field. Keep <i>&#8220;Connection type&#8221;</i> as <i>&#8220;SSH&#8221;</i>.</li>
<li>From the <i>&#8220;Connection&#8221;</i> category in left tree navigation, select <i>&#8220;SSH -> Auth&#8221;</i> and click on <i>&#8220;Credentials&#8221;</i>.</li>
<li>For <i>&#8220;Private key file for authentication&#8221;</i> click on <i>&#8220;Browse&#8221;</i> and select the private key file (.ppk).</li>
<li>Click on <i>&#8220;Open&#8221;</i> to initiate the SSH connection. At <i>&#8220;Putty Security Alert&#8221;</i>, click <i>&#8220;Yes&#8221;</i> to accept the server&#8217;s host key.</li>
</ul>
<h3 id="generating_a_ppk_file_from_a_pem_file">Generating a .ppk file from a .pem file</h3>
<p>To convert your private key file (.pem) to a .ppk file for use with PuTTY, follow these steps:</p>
<ul>
<li>Open PuTTY Key Generator (PuTTYgen) and click on <i>&#8220;Load&#8221;</i> to select your private key file (.pem).</li>
<li>Click on <i>&#8220;Save private key&#8221;</i> to convert the key to PuTTY&#8217;s .ppk format and save it to a location of your choice.</li>
<li>You can now connect the converted .ppk file with PuTTY to your EC2 instance.</li>
</ul>
<h2>Conclusion</h2>
<p>This article has shown how to connect to an Amazon EC2 instance over SSH. Following the steps outlined above, you can securely access your EC2 instance and manage it remotely using SSH.</p>
<p>Be sure to store your private key file securely and avoid sharing it with others, as it serves as the gateway to accessing your Amazon EC2 instance.</p>
<p>If you face any connection issues, verify that your instance is operational, that your security group permits SSH access from your IP address, and that you employ the correct private key file.</p>
<p>Did you find connecting to your EC2 instance over SSH easy? Do you have tips or another way to connect to an EC2 instance? Let us know in the comments below. We&#8217;d love to hear your ideas and experiences.</p>
<p>Thanks for reading!</p>
<p>Like this article? Please share it with your friends and help us grow. Happy coding! 😊</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/how-to-connect-to-an-ec2-instance-over-ssh/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to convert private key DER to PEM file type</title>
		<link>https://codepills.com/how-to-convert-private-key-der-to-pem-file-type/</link>
					<comments>https://codepills.com/how-to-convert-private-key-der-to-pem-file-type/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Wed, 01 Dec 2021 19:00:34 +0000</pubDate>
				<category><![CDATA[Tips & tricks]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[KeyStore Explorer]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">https://codepills.com/?p=1269</guid>

					<description><![CDATA[In this article I will show you quick work around how to turn <code>.pem</code> file type into the <code>.der</code> file type on Windows. <a href="https://codepills.com/how-to-convert-private-key-der-to-pem-file-type/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>In this article I will show you quick work around how to turn <code>.pem</code> file type into the <code>.der</code> file type on Windows.</p>
<p><span id="more-1269"></span></p>
<p>I had stuck on the problem when I needed to provide private key <code>.pem</code> file type for the OpenSSL command. However, the private key was saved in <code>.der</code> file type, so I needed to convert it.</p>
<p>There is a way to convert <code>.pem</code> file type on the Windows operating system to <code>.der</code> without using command line. Go to the Windows search bar and search for <b>KeyStore Explorer</b>. Open the KeyStore Explorer program. After opening the KeyStore Explorer, you should get the program screen like this:</p>
<div id="attachment_1270" style="width: 650px" class="wp-caption alignnone"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-1270" src="https://codepills.com/wp-content/uploads/2021/12/keystore_opened-1024x640.png" alt="KeyStore opened" width="640" height="400" class="size-large wp-image-1270" srcset="https://codepills.com/wp-content/uploads/2021/12/keystore_opened-1024x640.png 1024w, https://codepills.com/wp-content/uploads/2021/12/keystore_opened-300x187.png 300w, https://codepills.com/wp-content/uploads/2021/12/keystore_opened-768x480.png 768w, https://codepills.com/wp-content/uploads/2021/12/keystore_opened.png 1034w" sizes="(max-width: 640px) 100vw, 640px" /><p id="caption-attachment-1270" class="wp-caption-text">KeyStore opened</p></div>
<p>Click on the icon <i>Examine a Certificate</i>. From a system select your <code>.der</code> file. After selecting the <code>.der</code> you should get the KeyStore image like this:</p>
<div id="attachment_1272" style="width: 1008px" class="wp-caption alignnone"><img decoding="async" aria-describedby="caption-attachment-1272" src="https://codepills.com/wp-content/uploads/2021/12/keystore_der_file_opened.png" alt="KeyStore - .der file opened" width="998" height="615" class="size-full wp-image-1272" srcset="https://codepills.com/wp-content/uploads/2021/12/keystore_der_file_opened.png 998w, https://codepills.com/wp-content/uploads/2021/12/keystore_der_file_opened-300x185.png 300w, https://codepills.com/wp-content/uploads/2021/12/keystore_der_file_opened-768x473.png 768w" sizes="(max-width: 998px) 100vw, 998px" /><p id="caption-attachment-1272" class="wp-caption-text">KeyStore &#8211; .der file opened</p></div>
<p>Now all you need to do is to click on the <b>PEM</b> button. It will open you content of the <code>.der</code> file in <code>.pem</code> format.</p>
<div id="attachment_1270" style="width: 650px" class="wp-caption alignnone"><img decoding="async" aria-describedby="caption-attachment-1270" src="https://codepills.com/wp-content/uploads/2021/12/keystore_der_file_turned_to_pem-1024x532.png" alt="KeyStore - .der file turned to .pem" width="640" height="333" class="size-large wp-image-1271" srcset="https://codepills.com/wp-content/uploads/2021/12/keystore_der_file_turned_to_pem-1024x532.png 1024w, https://codepills.com/wp-content/uploads/2021/12/keystore_der_file_turned_to_pem-300x156.png 300w, https://codepills.com/wp-content/uploads/2021/12/keystore_der_file_turned_to_pem-768x399.png 768w, https://codepills.com/wp-content/uploads/2021/12/keystore_der_file_turned_to_pem.png 1244w" sizes="(max-width: 640px) 100vw, 640px" /><p id="caption-attachment-1270" class="wp-caption-text">KeyStore &#8211; .der file turned to .pem</p></div>
<p>You have now two options:</p>
<ul>
<li>You can either copy <code>.pem</code> file content into the system memory with <i>Copy</i> option.</li>
<li>Or you can export <code>.pem</code> file content on you machine disk with <i>Export</i> option.</li>
</ul>
<p><b>Note</b> : Never show or publish content of your private keys!</p>
<h2>Conclusion</h2>
<p>This article has shown how to turn <code>.pem</code> file type into the <code>.der</code> file type on Windows.</p>
<p>Did you find turning files easy? Do you have your trick or know another way <u>how to turn <code>.pem</code> file type into the <code>.der</code> file type</u>? Let us know in the comments below the article. We would like to hear your ideas and stories.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/how-to-convert-private-key-der-to-pem-file-type/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set a hot-swap on your Java project in IntelliJ Idea</title>
		<link>https://codepills.com/how-to-set-a-hot-swap-on-your-java-project-in-intellij-idea/</link>
					<comments>https://codepills.com/how-to-set-a-hot-swap-on-your-java-project-in-intellij-idea/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Wed, 19 Aug 2020 11:44:36 +0000</pubDate>
				<category><![CDATA[IDE]]></category>
		<category><![CDATA[hotswap]]></category>
		<category><![CDATA[IntelliJ]]></category>
		<category><![CDATA[Open JDK]]></category>
		<category><![CDATA[Spring Boot]]></category>
		<category><![CDATA[Trava Open JDK]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">https://codepills.com/?p=1068</guid>

					<description><![CDATA[In this article, we will look at how to hot-swap changes <a href="https://codepills.com/how-to-set-a-hot-swap-on-your-java-project-in-intellij-idea/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Let&#8217;s take a look at how to speed up the development of our Spring Boot app by installing Trava Open JDK and use of hot-swapping.</p>
<p><span id="more-1068"></span></p>
<h2>How to set hot swap with Trava Open JDK in your IntelliJ Idea</h2>
<ol>
<li>Install to your computer Trava Open JDK. You can find installation binaries at <a href="https://github.com/TravaOpenJDK/trava-jdk-11-dcevm" title="Download Trava Open JDK" rel="nofollow">Trava Open JDK on GitHub</a>. If you are Windows user, I would give you a tip to just download Windows binaries and unpack them to folder where you have the rest of JDKs. Exp. <i>C:/Program files/Java/</i> .</li>
<li>In IntelliJ Idea go to <i>Project Structure</i> and under <i>Platform Settings</i> add to <i>SDKs</i> Trava Open JDK. Also under <i>Project Settings</i> in <i>Project SDK</i> select Trave Open JDK as JDK for your project.</li>
<li>And as last step change in IntelliJ Spring Boot runner configuration <i>Running Application Update Policies</i>. Change <i>On &#8216;Update&#8217; action</i> and set it to <i>Update classes and resources</i> and <i>On frame deactivation</i> set the same to  <i>Update classes and resources</i>. You can check image below for more details.</li>
</ol>
<p><img loading="lazy" decoding="async" src="https://codepills.com/wp-content/uploads/2020/08/intellij_runner_with_hotswapping-886x1024.png" alt="IntelliJ runne with hot swapping" width="640" height="740" class="alignnone size-large wp-image-1069" srcset="https://codepills.com/wp-content/uploads/2020/08/intellij_runner_with_hotswapping-886x1024.png 886w, https://codepills.com/wp-content/uploads/2020/08/intellij_runner_with_hotswapping-260x300.png 260w, https://codepills.com/wp-content/uploads/2020/08/intellij_runner_with_hotswapping-768x887.png 768w, https://codepills.com/wp-content/uploads/2020/08/intellij_runner_with_hotswapping.png 900w" sizes="(max-width: 640px) 100vw, 640px" /></p>
<p>And that is all. You can start your app now, and your code will be hot-swapped on frame deactivation. Or you can command hot-swap manually with <code>ctrl + shift + f9</code>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/how-to-set-a-hot-swap-on-your-java-project-in-intellij-idea/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to connect Azure Cosmos DB Emulator with Spring Boot app at Windows</title>
		<link>https://codepills.com/how-to-connect-azure-cosmos-db-emulator-with-spring-boot-app-at-windows/</link>
					<comments>https://codepills.com/how-to-connect-azure-cosmos-db-emulator-with-spring-boot-app-at-windows/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Fri, 21 Feb 2020 13:58:46 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Azure]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[CosmosDB]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JDK]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">https://codepills.com/?p=1060</guid>

					<description><![CDATA[In this article, we look at installing Azure Cosmos DB Emulator on your Windows machine and using the Azure Cosmos DB Emulator for local development of our Spring Boot application. <a href="https://codepills.com/how-to-connect-azure-cosmos-db-emulator-with-spring-boot-app-at-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>This article will look at how to install Azure Cosmos DB Emulator on your Windows machine and how to use the Azure Cosmos DB Emulator for the local development of our Spring Boot application.</p>
<p><span id="more-1060"></span></p>
<h2>How to install Azure CosmosDB Emulator</h2>
<p>First of all, we need to install Azure CosmosDB Emulator locally. Go to <a href="https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator#installation" title="How to install Cosmos DB" rel="nofollow noopener" target="_blank">https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator#installation</a>, download the windows installation package and install <strong>Azure Cosmos DB Emulator</strong>.</p>
<p>When installing Azure Cosmos DB Emulator passed successfully on your Windows machine, start the emulator (if it did not start automatically).</p>
<p>If it is already running you can find it minimized in the system hidden in the running application system and either click <strong>Open Data Explorer &#8230;</strong> or visit <a href="https://localhost:8081/_explorer/index.html" title="local address of Azure Cosmos DB Emulator" rel="nofollow noopener" target="_blank">https://localhost:8081/_explorer/index.html</a> page. You can now get finally into the Azure CosmosDB Emulator.</p>
<h2>Exporting security certificates</h2>
<p>Azure Cosmos DB Emulator uses a secure connection with your application. We need to extract and register your certificate for communication with the emulator.</p>
<p>Let’s type &#8220;Manage user certificates&#8221; into Windows Start console or open Windows Certificate Manager (running certlm.msc in the run prompt). Go to Personal->Certificates folder and export certificate with <strong>DocumentDbEmulatorCertificate</strong> name. The whole tutorial how to do it can be found at <a href="https://docs.microsoft.com/bs-latn-ba/azure/cosmos-db/local-emulator-export-ssl-certificates#how-to-export-the-azure-cosmos-db-ssl-certificate" title="How to export Azure Cosmos DB SSL certificate" rel="nofollow noopener" target="_blank">Microsoft Azure website</a> explaining how to export the Azure Cosmos DB SSL certificate.</p>
<p>You can name your file when exporting arbitrary. However, we will name it for our example <strong>documentdbemulatorcert.cer</strong>.</p>
<p>Now when I have extracted the SSL certificate, I need to upload it into the correct Java SDK location.</p>
<p>Check which version of Java do you use in your project. In IntelliJ idea you can use either keyword shortcut [ctrl] + [shift] + [alt] + [s] or go to File->Project Structure->SDKs and check which version your Spring Boot application uses or where SDK is located.</p>
<p>Copy certificate into the Java SDK directory. It should be copied into the <strong>%JAVA_HOME%/jre/lib/security</strong> location.</p>
<p>If you use OpenJDK, OpenJDK does not contain <strong>jre</strong> folder. Just copy it into <strong>%JAVA_HOME%/lib/security</strong> location.</p>
<h2>Registering certificate</h2>
<p>The nearly last thing we need to do is to register the certificate into the system.</p>
<p>We need to open the Windows Command prompt as an administrator and navigate at JDK&#8217;s folder at jdk\jre\lib\security.</p>
<p><strong>Hint</strong>: A little hint if you are more familiar with Linux based systems than Windows. If you open a folder in Windows, copy the path to the folder and place it into quotation marks in the command prompt. Executing the command changes the directory instantly.</p>
<p>Then, upon the folder, we need just to run the following command to register the certificate into the keystore on your system:</p>
<pre><code class="language-bash">keytool -keystore cacerts -importcert -alias documentdbemulator -file documentdbemulatorcert.cer</code></pre>
<p><strong>Hint</strong>: Keytool is a tool located in your Java installation, so you need to have jdk/bin on your PATH for this to work.</p>
<p>If you need a hint with registration, check this tutorial at <a href="https://docs.microsoft.com/en-us/azure/java/java-sdk-add-certificate-ca-store?view=azure-java-stable#to-add-a-root-certificate-to-the-cacerts-store" title="How to add a root certificate to the cacerts store" rel="nofollow noopener" target="_blank">Microsoft Azure website</a> where you learn how to add a root certificate to the certification authority certificates storage. However instead of <strong>bc2025.cer</strong> name in tutorial use name of your certificate.</p>
<p>Otherwise, when the prompt asks for a password, type your password. More likely you didn&#8217;t change it, so default password is <strong><i>changeit</i></strong>. Following, you get a question, if you trust this certificate. Answer it simply <strong>yes</strong>.</p>
<p>That is it. The certificate is registered, and Azure Cosmos DB Emulator should be now created securely and with ease.</p>
<h2>Using emulator with local Spring Boot app development</h2>
<p>And all we need to do now is just run the Spring Boot application. If you implemented a connection to Cosmos DB and registered connection properties to <code>application.properties</code> or <code>application.yml</code> you can successfully run the application.</p>
<pre><code class="language-yaml">azure:
   cosmosdb:
    uri: https://localhost:8081
    key: VERY_LONG_KEY
    database: YOUR_DB_NAME</code></pre>
<p>To fill up <code>application.yml</code> you will need to implement your own data:</p>
<p>You can find VERY_LONG_KEY in your Azure Cosmos DB Emulator Data Explorer under the <i>Quick start</i> tab.</p>
<p>And all we need to do now is just run the Spring Boot application. If you check now Data Explorer under <i>Explorer</i> tab, you can find now your database with all the defined structures.</p>
<h2>Troubleshooting</h2>
<p>In case you already successfully installed the Azure CosmosDB Emulator and you want to restart the database, you have an option to reset data. Data reset comes handy when you get an authentication issue over HTTPS with your Azure CosmosDB certificate on the application run.</p>
<p>Pick up &#8220;Reset data&#8221; from the Azure CosmosDB Emulator mini-panel dialogue window from your start button. Operation is not reversible; it will clean up all your caches and the internal state of the Azure CosmosDB Emulator database and reset the certificate.</p>
<p>Then it would be best if you continued extracting the certificate from the list of certificates according to the description in Exporting Security Certificates. However, before registering the certificate back to Java keytool, you need to remove the old alias on the certificate with a command like this:</p>
<pre><code class="language-bash">keytool -delete -alias documentdbemulator -keystore cacerts -storepass changeit</code></pre>
<p><strong>Notes</strong>: behind <code>-alias</code> you place the name of the certificate, <code>-keystore</code> is the name of a file containing the certificates and behind <code>-storepass</code> is your password (default is <i>changeit</i>).</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/how-to-connect-azure-cosmos-db-emulator-with-spring-boot-app-at-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How do you kill the port on Windows?</title>
		<link>https://codepills.com/how-do-you-kill-the-port-on-windows/</link>
					<comments>https://codepills.com/how-do-you-kill-the-port-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[Andrej Buday]]></dc:creator>
		<pubDate>Sat, 01 Jun 2019 08:00:28 +0000</pubDate>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://codekopf.com/?p=799</guid>

					<description><![CDATA[This tutorial shows how to kill the port in the Windows operating system. <a href="https://codepills.com/how-do-you-kill-the-port-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>How do you set a port free that is assigned to a particular process or application? This tutorial shows how to kill the port in the Windows operating system.</p>
<p><span id="more-799"></span></p>
<p><strong>Issue</strong></p>
<p>I got into trouble with my Spring Boot application on my development machine. The application port occupancy prevented my local Spring development environment from running. By default, Spring uses port 8443. So, I needed to make the port free to run my application without needing to rewrite the port number in the application config file.</p>
<p><strong>Solution</strong></p>
<p>Here is a simple solution on how to set the occupied port free on Windows OS:</p>
<p><strong>Step 1</strong></p>
<p>You must run the Windows Command Line as an Administrator or Git Bash. Then, run the command below with the port number in the port number placeholder.</p>
<pre><code class="language-bash">netstat -ano | findstr :MY_PORT_NUMBER</code></pre>
<p>The number on the right side (PID &#8211; process identifier) is the number of processes currently using the port.</p>
<p><strong>Step 2</strong></p>
<p>For this, you can use only the Windows Command Line. First, you need to kill the process using the port so the port can be set free. Type the following command with process PID to the command line:</p>
<pre><code class="language-bash">taskkill /PID YOUR_PID_NUMBER /F</code></pre>
<p>Prefix /F, in this case, means forcefully terminates the process.</p>
<p>If everything went smoothly, you should get the following message:</p>
<blockquote><p>SUCCESS: The process with PID YOUR_PID_NUMBER has been terminated.</p></blockquote>
<p>In the end, rerun the first command to check whether the process is on or not. If you get an empty line, the process successfully ends, and the required port is free.</p>
<h2>Conclusion</h2>
<p>This article shows how to kill the Windows operating system port quickly.</p>
<p>Did you find releasing ports easy? Do you have your trick, or do you know another way <u>how to kill specific port on the Windows operating system</u>? Let us know in the comments below. We would like to hear your ideas and stories.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codepills.com/how-do-you-kill-the-port-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
