{"id":782,"date":"2026-06-17T06:59:05","date_gmt":"2026-06-17T06:59:05","guid":{"rendered":"https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/"},"modified":"2026-07-26T15:16:28","modified_gmt":"2026-07-26T13:16:28","password":"","slug":"cum-generez-csr-in-node-js","status":"publish","type":"docs","link":"https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/","title":{"rendered":"Cum generez un CSR \u00een Node.js?"},"content":{"rendered":"<p>Un CSR (Certificate Signing Request) este un text codificat ce con\u021bine numele domeniului \u0219i detaliile organiza\u021biei. Pentru a-l genera \u00eentr-un mediu Node.js folose\u0219ti <strong>OpenSSL<\/strong>, care este un utilitar de sistem (nu un pachet npm).<\/p>\n<ol>\n<li>Asigur\u0103-te c\u0103 OpenSSL este instalat pe server. Pe Linux:\n<pre><code>sudo dnf install openssl    # AlmaLinux\/Rocky\nsudo apt install openssl    # Debian\/Ubuntu<\/code><\/pre>\n<p>Verific\u0103 versiunea cu <code>openssl version<\/code>.<\/li>\n<li>Genereaz\u0103 CSR-ul \u0219i cheia privat\u0103:\n<pre><code>openssl req -nodes -newkey rsa:2048 -keyout example_com.key -out example_com.csr<\/code><\/pre>\n<\/li>\n<li>Completeaz\u0103 c\u00e2mpurile solicitate (Common Name = FQDN-ul de securizat, Organization, Organizational Unit, City, State, Country; Email \u0219i Challenge Password sunt op\u021bionale).<\/li>\n<\/ol>\n<p>CSR-ul va fi salvat \u00een fi\u0219ierul <code>.csr<\/code>, iar cheia privat\u0103 \u00een <code>.key<\/code>. CSR-ul are forma:<\/p>\n<pre><code>-----BEGIN CERTIFICATE REQUEST-----\n[date codificate]\n-----END CERTIFICATE REQUEST-----<\/code><\/pre>\n<p>Copiaz\u0103 tot con\u021binutul (inclusiv liniile BEGIN\/END) \u0219i trimite-l furnizorului de certificate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Un CSR (Certificate Signing Request) este un text codificat ce con\u021bine numele domeniului \u0219i detaliile organiza\u021biei. Pentru a-l genera \u00eentr-un mediu Node.js folose\u0219ti OpenSSL, care este un utilitar de sistem (nu un pachet npm). Asigur\u0103-te c\u0103 OpenSSL este instalat pe server. Pe Linux: sudo dnf install openssl # AlmaLinux\/Rocky sudo apt install openssl # Debian\/Ubuntu &#8230; <a title=\"Cum generez un CSR \u00een Node.js?\" class=\"read-more\" href=\"https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/\" aria-label=\"Cite\u0219te mai multe despre Cum generez un CSR \u00een Node.js?\">Cite\u0219te mai mult<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"whmcs_kb_id":1915,"footnotes":""},"doc_category":[93],"doc_tag":[244,238,421,239,237],"class_list":["post-782","docs","type-docs","status-publish","hentry","doc_category-csr","doc_tag-certificat-digital","doc_tag-csr","doc_tag-node-js","doc_tag-openssl","doc_tag-ssl"],"year_month":"2026-11","word_count":142,"total_views":"20","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Adrian Firican","author_nicename":"techeditor1","author_url":"https:\/\/www.hostx.ro\/kb\/author\/techeditor1\/"},"doc_category_info":[{"term_name":"CSR","term_url":"https:\/\/www.hostx.ro\/kb\/docs-category\/csr\/"}],"doc_tag_info":[{"term_name":"certificat digital","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/certificat-digital\/"},{"term_name":"CSR","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/csr\/"},{"term_name":"Node.js","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/node-js\/"},{"term_name":"OpenSSL","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/openssl\/"},{"term_name":"SSL","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/ssl\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cum generez un CSR \u00een Node.js - Ghid OpenSSL - Centrul de suport HostX<\/title>\n<meta name=\"description\" content=\"Ghid complet pentru generarea unui CSR \u00een Node.js folosind OpenSSL. Afl\u0103 cum s\u0103 creezi cereri de semnare a certificatelor \u0219i chei private pentru domenii.\" \/>\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.hostx.ro\/kb\/cum-generez-csr-in-node-js\/\" \/>\n<meta property=\"og:locale\" content=\"ro_RO\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cum generez un CSR \u00een Node.js - Ghid OpenSSL - Centrul de suport HostX\" \/>\n<meta property=\"og:description\" content=\"Ghid complet pentru generarea unui CSR \u00een Node.js folosind OpenSSL. Afl\u0103 cum s\u0103 creezi cereri de semnare a certificatelor \u0219i chei private pentru domenii.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/\" \/>\n<meta property=\"og:site_name\" content=\"Centrul de suport HostX\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-26T13:16:28+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Timp estimat pentru citire\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-csr-in-node-js\\\/\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-csr-in-node-js\\\/\",\"name\":\"Cum generez un CSR \u00een Node.js - Ghid OpenSSL - Centrul de suport HostX\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\"},\"datePublished\":\"2026-06-17T06:59:05+00:00\",\"dateModified\":\"2026-07-26T13:16:28+00:00\",\"description\":\"Ghid complet pentru generarea unui CSR \u00een Node.js folosind OpenSSL. Afl\u0103 cum s\u0103 creezi cereri de semnare a certificatelor \u0219i chei private pentru domenii.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-csr-in-node-js\\\/#breadcrumb\"},\"inLanguage\":\"ro-RO\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-csr-in-node-js\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-csr-in-node-js\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Prima pagin\u0103\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"InfoCentru\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cum generez un CSR \u00een Node.js?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\",\"name\":\"Centrul de suport HostX\",\"description\":\"tutoriale gazduire web, domenii web \u0219i servere\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ro-RO\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cum generez un CSR \u00een Node.js - Ghid OpenSSL - Centrul de suport HostX","description":"Ghid complet pentru generarea unui CSR \u00een Node.js folosind OpenSSL. Afl\u0103 cum s\u0103 creezi cereri de semnare a certificatelor \u0219i chei private pentru domenii.","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.hostx.ro\/kb\/cum-generez-csr-in-node-js\/","og_locale":"ro_RO","og_type":"article","og_title":"Cum generez un CSR \u00een Node.js - Ghid OpenSSL - Centrul de suport HostX","og_description":"Ghid complet pentru generarea unui CSR \u00een Node.js folosind OpenSSL. Afl\u0103 cum s\u0103 creezi cereri de semnare a certificatelor \u0219i chei private pentru domenii.","og_url":"https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/","og_site_name":"Centrul de suport HostX","article_modified_time":"2026-07-26T13:16:28+00:00","twitter_card":"summary_large_image","twitter_misc":{"Timp estimat pentru citire":"1 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/","url":"https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/","name":"Cum generez un CSR \u00een Node.js - Ghid OpenSSL - Centrul de suport HostX","isPartOf":{"@id":"https:\/\/www.hostx.ro\/kb\/#website"},"datePublished":"2026-06-17T06:59:05+00:00","dateModified":"2026-07-26T13:16:28+00:00","description":"Ghid complet pentru generarea unui CSR \u00een Node.js folosind OpenSSL. Afl\u0103 cum s\u0103 creezi cereri de semnare a certificatelor \u0219i chei private pentru domenii.","breadcrumb":{"@id":"https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/#breadcrumb"},"inLanguage":"ro-RO","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostx.ro\/kb\/cum-generez-csr-in-node-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Prima pagin\u0103","item":"https:\/\/www.hostx.ro\/kb\/"},{"@type":"ListItem","position":2,"name":"InfoCentru","item":"https:\/\/www.hostx.ro\/kb\/docs\/"},{"@type":"ListItem","position":3,"name":"Cum generez un CSR \u00een Node.js?"}]},{"@type":"WebSite","@id":"https:\/\/www.hostx.ro\/kb\/#website","url":"https:\/\/www.hostx.ro\/kb\/","name":"Centrul de suport HostX","description":"tutoriale gazduire web, domenii web \u0219i servere","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostx.ro\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ro-RO"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":2,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/782\/revisions"}],"predecessor-version":[{"id":6132,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/782\/revisions\/6132"}],"wp:attachment":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_category?post=782"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_tag?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}