{"id":2291,"date":"2025-02-15T12:30:00","date_gmt":"2025-02-15T18:30:00","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=2291"},"modified":"2025-01-08T02:54:49","modified_gmt":"2025-01-08T08:54:49","slug":"self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/","title":{"rendered":"How To Create a Self-Signed SSL Certificate for Nginx in Ubuntu 24.04"},"content":{"rendered":"\n<p>This blog post is about creating a self-signed SSL certificate for the Nginx web server in Ubuntu 24.04 OS. A Self-Signed SSL certificate is just like the other SSL certificates with a certificate private key and cert file. The only difference is that certificate authorities do not trust the self-signed SSL certificate included with the web browsers. Self-signed certificate in most cases is used when there is no domain associated with your server, otherwise, if there is a domain it is better to use CA-Signed (Certificate Authority) SSL certificate. However in both cases with or without a domain(only IP address) we can install a self-signed SSL certificate. The CA-Signed can only be installed on a domain.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>In the next paragraphs we will first install the Nginx web server and will explain the procedure for generating the self-signed SSL certificate. Then we will configure the SSL into the Nginx web server configuration file. Let&#8217;s get things done!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\">server with Ubuntu 24.04<\/a> as OS<\/li>\n\n\n\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1. Update the System<\/h2>\n\n\n\n<p>Before we start with any installation we will update the system packages to their latest versions available:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update -y &amp;&amp; sudo apt upgrade -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2. Install Nginx Web Server<\/h2>\n\n\n\n<p>To install the Nginx Web server execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install nginx -y<\/pre>\n\n\n\n<p>Once installed, start and enable the nginx service:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl start nginx &amp;&amp; sudo systemctl enable nginx<\/pre>\n\n\n\n<p>To check the status of the Nginx service execute the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl status nginx<\/pre>\n\n\n\n<p>You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# sudo systemctl status nginx\n\u25cf nginx.service - A high performance web server and a reverse proxy server\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/nginx.service; enabled; preset: enabled)\n     Active: active (running) since Sat 2025-01-04 12:38:14 CST; 1min 25s ago\n       Docs: man:nginx(8)\n   Main PID: 259829 (nginx)\n      Tasks: 4 (limit: 4613)\n     Memory: 3.0M (peak: 3.5M)\n        CPU: 43ms\n     CGroup: \/system.slice\/nginx.service\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3.Install OpenSSL<\/h2>\n\n\n\n<p>OpenSSL is a robust cryptography toolkit that implements the TLS and SSL layers, for encrypted application communication. We need OpenSSL to create the self-signed key and certificate. To install it execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install openssl -y<\/pre>\n\n\n\n<p>Once installed you can check the version with the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">openssl version<\/pre>\n\n\n\n<p>You should get output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# openssl version\nOpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4. Create Self-Signed Key and Certificate Pair<\/h2>\n\n\n\n<p>Now, when the OpenSSL toolkit is installed we can generate an SSL private key and certificate with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout \/etc\/ssl\/private\/nginx-private.key -out \/etc\/ssl\/certs\/nginx-certificate.crt<\/pre>\n\n\n\n<p>Once, you execute this command you will be asked for some info about the country, organization name, common name, email, etc. Please note that the most important info in this will be the <strong>Common Name<\/strong>, and that is the domain name or your server IP address where the certificate should be issued. In this post we will use the server IP address so out filled info will look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Country Name (2 letter code) [AU]:<br>State or Province Name (full name) [Some-State]:<br>Locality Name (eg, city) []:<br>Organization Name (eg, company) [Internet Widgits Pty Ltd]:<br>Organizational Unit Name (eg, section) []:<br>Common Name (e.g. server FQDN or YOUR name) []:<strong>YourDomainNameHere<\/strong><br>Email Address []:admin@yourdomain.com<br><\/pre>\n\n\n\n<p>The private key and the self-signed certificate will be created in the following path we defined in the openssl command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The SSL private key: <strong>\/etc\/ssl\/private\/nginx-private.key<\/strong><br><br>The Self-Signed certificate: <strong>\/etc\/ssl\/certs\/nginx-certificate.crt<\/strong><br><\/pre>\n\n\n\n<p>To check the content of the generated private key you can execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/etc\/ssl\/private\/nginx-private.key<\/pre>\n\n\n\n<p>You will get output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDLcy5xcNjL6BUN\nMkDmMQEwbgCevSXv+stw4KTHQ26GcP9LDrZhF2dF56f+pBzsk4xtBabk66ZlJr1Q\nWLt1SQLR3kdyRB\/N62JPAewMKJo8JxDcI+XQiXKY0pCBUl\/Ha4b\/HabkzHuS2Equ\nrKrKgr0iA78bWrQS6ag4wN\/+k5weFL3WyKWBeYD\/RCfC\/zC26lLGhs9GTQRwh675\nu+VqtR6N3215JCRuYOg3WQHApkktuo61SR56dHUOjSlZi5+eg2D42SZUR\/ELp23F\ndcmBkwCd0\/4Na2Z+67+n85zS+zdgZsPNADnGo2GiU7iGWLsyVMG71IX7jZJ0jK0R\nDEuVYuQNAgMBAAECggEAGai1t031scXb\/dWUNNQCY+LDxkFxyvH0\/Y\/\/iDgbdO5E\nbGl3HAixGDJu0CFPmpDDWa6oTV\/hFQnNP5hpUBH8vo5LsYAhCL4CoJdL936ZcTO2\nHyWR4vqqztZjrkO+265WkM9jEKEvhqYryRry0WaqxuL1E9SdOHNqqXm95mQkgPCA\nDmIZbMNv31nuKT7W0GDhoYpk11YmZTrOnVsF8bkGAdJxXxeKQK12SUW0Ph6rMXYV\n4q106NUC9n3D6Rnxa1ECFCdANm0v7yC0\/Um61PxDmk\/0F7v1EFwo6IFeqUMzR2Fg\n2\/PEMkYqrD2Jc8UfZyDvbehnmNF1ZWDeDlSYx3CYawKBgQDzoxKcJ4vdUA7Cj7OZ\neT9DivY93502+bKZdrO+\/ad2p0WtC8GIOoYUHdblk+OwSJAPh6yxs\/FlcTuH05K\/\nbgS60kmT0JmzpVF9HCXBz3HMVqH+FrFxF7lzfBJoeQFzcV+Zrf9c46+l8SZMF4yy\no3bMROvv6VpyX7Zhp4iN8Nub7wKBgQDVxhCiypf3YKteIh8JGmaAn75FX3hywCcO\neeQK9ir6taKegwGoIrSAa9UZcHPTUe5yVQMwC7DMNCFpELdefFUKjqXcZJJ+Pt9z\n3\/i7P\/6XE6ft2tGolRsPZiUm87HM5cseH+nEvhWCiTOQyNiaThgHnncOyyHp5pZq\nqCqdeh2zwwKBgQDFrzOScKQT1rmjNGZNyQuECmTyn1Y5HTHFQ4NlHPucUu0+E6Pc\nnV\/dQrjzXqQIjVgWwcdmCNN9s\/rRouIXYXWFAMuinEeadDFCimw4bdGwMzsNp+wi\nD1XyVmG5UzXSLdOcJoplHHmQ87JXW2RWLjxeUi3+ZCF3XCHn6r\/qK9yFEQKBgEDH\nEvVxdJk2htcweb0Vbegd\/9cftez3wx4E25BixeVQsuVbh13+njmn81wRElf\/pMSq\ndBvT\/w\/x4AnpUddkz5QyY5okM6vju2xuev2qx6faAfH2c7+k5x1Ec4+ZGtCe9Wy8\neObwPq5eiuydn90qOufcIfGupiktgXjyWm97uJJnAoGBAN0MKbazEc3BVXthLoPn\nUsnMZlnH1cSx+IoYlzD2Ol9Ws4oFGgy9NjeC66ilcb4Y87BpVVmSqfMJiitI9CCt\nnvyXVuJ+C6o8HIc3AW4sECmlorUgO1wWiFoDd6el862joJsq7hMCzeWDVi6HkhpR\nt1Nvol95VuULK9rrsigTtQ82\n-----END PRIVATE KEY-----\n\n<\/pre>\n\n\n\n<p>To check the content of the generated certificate file you can execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/etc\/ssl\/certs\/nginx-certificate.crt<\/pre>\n\n\n\n<p>You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-----BEGIN CERTIFICATE-----\nMIID5zCCAs+gAwIBAgIUDJeSvnCIHNpKi7Pd0vJtJqISZ\/swDQYJKoZIhvcNAQEL\nBQAwgYIxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQK\nDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxFjAUBgNVBAMMDTE2Mi4yNDYuMjU0\nLjMxIzAhBgkqhkiG9w0BCQEWFGFkbWluQHlvdXJkb21haW4uY29tMB4XDTI1MDEw\nMzE5MDAxNloXDTI2MDEwMzE5MDAxNlowgYIxCzAJBgNVBAYTAkFVMRMwEQYDVQQI\nDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQx\nFjAUBgNVBAMMDTE2Mi4yNDYuMjU0LjMxIzAhBgkqhkiG9w0BCQEWFGFkbWluQHlv\ndXJkb21haW4uY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy3Mu\ncXDYy+gVDTJA5jEBMG4Anr0l7\/rLcOCkx0NuhnD\/Sw62YRdnReen\/qQc7JOMbQWm\n5OumZSa9UFi7dUkC0d5HckQfzetiTwHsDCiaPCcQ3CPl0IlymNKQgVJfx2uG\/x2m\n5Mx7kthKrqyqyoK9IgO\/G1q0EumoOMDf\/pOcHhS91silgXmA\/0Qnwv8wtupSxobP\nRk0EcIeu+bvlarUejd9teSQkbmDoN1kBwKZJLbqOtUkeenR1Do0pWYufnoNg+Nkm\nVEfxC6dtxXXJgZMAndP+DWtmfuu\/p\/Oc0vs3YGbDzQA5xqNholO4hli7MlTBu9SF\n+42SdIytEQxLlWLkDQIDAQABo1MwUTAdBgNVHQ4EFgQUe8ZdqUyBdYSeTGyKKdCc\nzTE7Nj0wHwYDVR0jBBgwFoAUe8ZdqUyBdYSeTGyKKdCczTE7Nj0wDwYDVR0TAQH\/\nBAUwAwEB\/zANBgkqhkiG9w0BAQsFAAOCAQEAAsXXJs6deSbbnkVVZ0McmIaMNj1\/\noxxRtd\/d41wIYsw+WtTz0I7A8fMUROKZRyiwj8j873249vPrQ3R2BXG1mNJ0qfwU\nH9pQJkfB3zYhT1dS9YbsQUEcO2go1+Y8WnIzFtIujJfogEA+c+OLKQTkoith7Cgi\nQBs8s\/xjkzR2ouVMWXrAUI4MnBOAcxFOIkKAyQZBz85V6xsosOFxUZ\/gruzDnmN2\nz96Tejp0PS3Iv0kyzVkxBSumFivIk6qHr5FSlyrWm\/pmpj1uCizvOa1SlEZLJi5n\nBQpnU0fU5PvCOGm\/g895NB\/ZxR4B9wbvjGjhd94aUiVJ7V9S577dbfpZiQ==\n-----END CERTIFICATE-----\n\n<\/pre>\n\n\n\n<p>Next is to create <strong>dhparam<\/strong> which is used to negotiate the perfect forward secrecy policy with clients. To generate <strong>dhparam.pem<\/strong> file execute the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo openssl dhparam -out \/etc\/nginx\/dhparam.pem 4096<\/pre>\n\n\n\n<p>Generating the strong dhparam will take up to 30 minutes. Once created you can check it with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/etc\/nginx\/dhparam.pem\n<\/pre>\n\n\n\n<p>You should receive output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# cat \/etc\/nginx\/dhparam.pem\n-----BEGIN DH PARAMETERS-----\nMIICCAKCAgEAhA8SC2VWysEKoDOXiMvCqL0uDv2PWW38gVFCMXtt4UOHd1cWoR0P\nkcoj0BQkGC6ecsRnXF3S9HoV+mDoN6zdSTt69CCGfkDQf5oNhpOvQxUt6qn8A7du\nejkPCsZju2JUGAkINsCEJqzWCIbH1Z9s1at7YSMrdead7AijkvWkcrfMAfJ8EqdD\nchg1MewXgmJFzl7XGsitiICadVDebOn2JY+Y56QnCaa4q1GuRhFX1A9TzJXp8I06\nWLuj+PdiXFNZM8CtXUM0TbiKLqaqODiguq\/hKr3oIOANuSfxzjsPCMo4j66i9v2t\nx2pyQrj7+exK6O8MVm+roqm9upPZCKtyQeXmxQA8n8PsHOoGgjZuvbx38dHbOKfz\ncbNwdSCh85CjxRGttWU2Fh7+QvTdStnxo\/te7gc1L+j4\/Vz+QiKwXsJEA+daLp3o\nJNpuieIosLXI1\/1HsWGF88OBHexlMxNNRvdryek3U1bTOb3KMUW0e6ceI5sTS4l\/\nimwEsc7KQiABKH8s5xtPcgoDbVriB\/\/AJv2WNGDdQLZi2TCxKfo2LenU8efOgtgG\nIV+XF9hHZfp7Mm25g9JNgpdxThN1Ogm8d1b+o4gQQjfM5z1q+6k5YinT9KYUCijm\nQZagXJoM80fVnw8JPPbNKWA9VAKrrJyJiV2vM\/Ky3+Z48n\/ZC+fNRbcCAQI=\n-----END DH PARAMETERS-----\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5. Configure Nginx<\/h2>\n\n\n\n<p>The last step of the blog post is to configure the Nginx web server to read the generated self-signed <strong>certificate<\/strong> along with the <strong>private key<\/strong> and <strong>dhparam<\/strong>. In other words, we will create configuration snippet for Strong Encryption settings, including the generated dhparam.pem file. Then we will create a a Nginx configuration file, including the SSL certificate file and private key along with the snippet.<\/p>\n\n\n\n<p>To create the snippet for the strong encryption settings which will include the dhparam:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">touch \/etc\/nginx\/snippets\/ssl-params.conf<\/pre>\n\n\n\n<p>Open the file with your favorite text editor and paste the following lines of code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssl_protocols TLSv1.3;<br>ssl_prefer_server_ciphers on;<br><strong>ssl_dhparam \/etc\/nginx\/dhparam.pem; <\/strong><br>ssl_ciphers EECDH+AESGCM:EDH+AESGCM;<br>ssl_ecdh_curve secp384r1;<br>ssl_session_timeout  10m;<br>ssl_session_cache shared:SSL:10m;<br>ssl_session_tickets off;<br>ssl_stapling on;<br>ssl_stapling_verify on;<br>resolver 8.8.8.8 8.8.4.4 valid=300s;<br>resolver_timeout 5s;<br># Disable strict transport security for now. You can uncomment the following<br># line if you understand the implications.<br>#add_header Strict-Transport-Security \"max-age=63072000; includeSubDomains; preload\";<br>add_header X-Frame-Options DENY;<br>add_header X-Content-Type-Options nosniff;<br>add_header X-XSS-Protection \"1; mode=block\";<br><\/pre>\n\n\n\n<p>Next we need to create Nginx configuration for our domain name. To do that execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">touch \/etc\/nginx\/sites-available\/your_domain_name-here<\/pre>\n\n\n\n<p>Open the file and paste the following lines of code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">server {<br>        root \/var\/www\/html;<br>        index  index.php index.html index.htm;<br>        server_name <strong>YourDomainNameHere<\/strong>;<br><br>        error_log \/var\/log\/nginx\/<strong>YourDomainNameHere<\/strong>_error.log;<br>        access_log \/var\/log\/nginx\/<strong>YourDomainNameHere<\/strong>_access.log;<br><br>        client_max_body_size 100M;<br>        location \/ {<br>                try_files $uri $uri\/ \/index.php?$args;<br>        }<br>        location ~ \\.php$ {<br>                include snippets\/fastcgi-php.conf;<br>                fastcgi_pass unix:\/run\/php\/php8.3-fpm.sock;<br>                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>        }<br><br>    listen 443 ssl;<br>    <strong>ssl_certificate \/etc\/ssl\/certs\/nginx-certificate.crt;<br>    ssl_certificate_key \/etc\/ssl\/private\/nginx-private.key;<br>    include \/etc\/nginx\/snippets\/ssl-params.conf;<\/strong><br><br>}<br>server {<br>    if ($host = <strong>YourDomainNameHere<\/strong>) {<br>        return 301 https:\/\/$host$request_uri;<br>    }<br><br>        listen 80;<br>        server_name <strong>YourDomainNameHere<\/strong>;<br>    return 404;<br><br>}<br><br><\/pre>\n\n\n\n<p>Save the file and close it.<\/p>\n\n\n\n<p>Check the Nginx configuration with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nginx -t<\/pre>\n\n\n\n<p>You might get output with a warning about an unknown certificate issuer, which is fine because we create self-signed SSL certificates:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:\/etc\/nginx# nginx -t\n2025\/01\/04 13:50:32 [warn] 289235#289235: \"ssl_stapling\" ignored, issuer certificate not found for certificate \"\/etc\/ssl\/certs\/nginx-certificate.crt\"\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful\n<\/pre>\n\n\n\n<p>The bottom two lines say that the configuration is OK, and the Nginx test is successful so that we can restart the Nginx service:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl restart nginx<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6. Access the website in the Browser<\/h2>\n\n\n\n<p>The last is to access the website in your browser and to verify that the Self-Signed certificate is working. The first time accessing the website in Chrome will throw the <strong>Your connection is not private<\/strong> which is fine since the self-signed certificate is not trusted by the certificate authorities:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im1-1.png\"><img decoding=\"async\" width=\"948\" height=\"366\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im1-1.png\" alt=\"Your connection is not private\" class=\"wp-image-2300\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im1-1.png 948w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im1-1-470x181.png 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im1-1-768x297.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/a><\/figure>\n\n\n\n<p>Click on <strong>Advanced<\/strong>, then Proceed to your website domain (unsafe) to access the website &#8220;insecurely&#8221;. Remember that this is due to the self-signed certificate.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im2-1.png\"><img decoding=\"async\" width=\"948\" height=\"494\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im2-1.png\" alt=\"Your connection is not private advanced settings\" class=\"wp-image-2301\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im2-1.png 948w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im2-1-470x245.png 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im2-1-768x400.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><\/a><\/figure>\n\n\n\n<p>Once the website is accessed you need to click left of the URL on <strong>Not secure<\/strong> and then on <strong>Certificate Details<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im3-2.jpg\"><img decoding=\"async\" width=\"322\" height=\"494\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im3-2.jpg\" alt=\"not secure certificate\" class=\"wp-image-2302\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im3-2.jpg 322w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im3-2-196x300.jpg 196w\" sizes=\"(max-width: 322px) 100vw, 322px\" \/><\/a><\/figure>\n\n\n\n<p>In the Genereal tab, under the Validity section you will see the validity of the self-signed certificate:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im4.jpg\"><img decoding=\"async\" width=\"552\" height=\"624\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im4.jpg\" alt=\"date of self-signed ssl certificate\" class=\"wp-image-2297\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im4.jpg 552w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/01\/im4-265x300.jpg 265w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/a><\/figure>\n\n\n\n<p>It says that the certificate iss valid for 1 year, which was defined in the command we executed in Step 4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo openssl req -x509 -nodes -days <strong>365<\/strong> -newkey rsa:2048 -keyout \/etc\/ssl\/private\/nginx-private.key -out \/etc\/ssl\/certs\/nginx-certificate.crt<\/code><\/pre>\n\n\n\n<p>That&#8217;s it! You have learned how to cerate a Self-Signed-SSL-Certificate for Nginx in Ubuntu 24.04 OS.<\/p>\n\n\n\n<p>PS. If you liked this post about creating a self-signed SSL certificate for Nginx in Ubuntu 24.04 OS, please share it with your friends or leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog post is about creating a self-signed SSL certificate for the Nginx web server in Ubuntu 24.04 OS. A Self-Signed SSL certificate is just like the other SSL certificates with a certificate private key and cert file. The only difference is that certificate authorities do not trust the self-signed SSL certificate included with the &#8230; <a title=\"How To Create a Self-Signed SSL Certificate for Nginx in Ubuntu 24.04\" class=\"read-more\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/\" aria-label=\"More on How To Create a Self-Signed SSL Certificate for Nginx in Ubuntu 24.04\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":2310,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,332],"tags":[118,128,337,300],"class_list":["post-2291","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu-24-04","tag-how-to","tag-nginx","tag-ssl-certificate","tag-ubuntu-24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Self-Signed SSL Certificate for Nginx in Ubuntu 24.04<\/title>\n<meta name=\"description\" content=\"Learn how to create a self-signed SSL certificate for Nginx in Ubuntu 24.04 using our latest easy-to-follow guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Self-Signed SSL Certificate for Nginx in Ubuntu 24.04\" \/>\n<meta property=\"og:description\" content=\"Learn how to create a self-signed SSL certificate for Nginx in Ubuntu 24.04 using our latest easy-to-follow guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-15T18:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/02\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"How To Create a Self-Signed SSL Certificate for Nginx in Ubuntu 24.04\",\"datePublished\":\"2025-02-15T18:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/\"},\"wordCount\":880,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp\",\"keywords\":[\"how to\",\"nginx\",\"SSL Certificate\",\"ubuntu 24.04\"],\"articleSection\":[\"Tutorials\",\"ubuntu 24.04\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/\",\"name\":\"Self-Signed SSL Certificate for Nginx in Ubuntu 24.04\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp\",\"datePublished\":\"2025-02-15T18:30:00+00:00\",\"description\":\"Learn how to create a self-signed SSL certificate for Nginx in Ubuntu 24.04 using our latest easy-to-follow guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp\",\"width\":742,\"height\":410,\"caption\":\"How to create a self-signed SSL certificate for Nginx in Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Create a Self-Signed SSL Certificate for Nginx in Ubuntu 24.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Self-Signed SSL Certificate for Nginx in Ubuntu 24.04","description":"Learn how to create a self-signed SSL certificate for Nginx in Ubuntu 24.04 using our latest easy-to-follow guide.","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:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/","og_locale":"en_US","og_type":"article","og_title":"Self-Signed SSL Certificate for Nginx in Ubuntu 24.04","og_description":"Learn how to create a self-signed SSL certificate for Nginx in Ubuntu 24.04 using our latest easy-to-follow guide.","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2025-02-15T18:30:00+00:00","og_image":[{"width":742,"height":410,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/02\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"How To Create a Self-Signed SSL Certificate for Nginx in Ubuntu 24.04","datePublished":"2025-02-15T18:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/"},"wordCount":880,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/02\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp","keywords":["how to","nginx","SSL Certificate","ubuntu 24.04"],"articleSection":["Tutorials","ubuntu 24.04"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/","name":"Self-Signed SSL Certificate for Nginx in Ubuntu 24.04","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/02\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp","datePublished":"2025-02-15T18:30:00+00:00","description":"Learn how to create a self-signed SSL certificate for Nginx in Ubuntu 24.04 using our latest easy-to-follow guide.","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/02\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2025\/02\/how-to-create-a-self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04.webp","width":742,"height":410,"caption":"How to create a self-signed SSL certificate for Nginx in Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/self-signed-ssl-certificate-for-nginx-in-ubuntu-24-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Create a Self-Signed SSL Certificate for Nginx in Ubuntu 24.04"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=2291"}],"version-history":[{"count":10,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2291\/revisions"}],"predecessor-version":[{"id":2309,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2291\/revisions\/2309"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/2310"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=2291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=2291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=2291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}