{"id":23296,"date":"2026-03-26T13:45:39","date_gmt":"2026-03-26T19:45:39","guid":{"rendered":"https:\/\/sada.services\/?p=23296"},"modified":"2026-03-26T13:53:51","modified_gmt":"2026-03-26T19:53:51","slug":"okd-crear-certificado-wild-en-okd-para-appa-andrey","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=23296","title":{"rendered":"OKD: Crear certificado wild en OKD para appa andrey"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li>En localhost descargamos <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/home\/tavo\/Escritorio\/\nmkdir certificados\ncd certificados\/\n\nscp -r root@10.0.2.30:\/etc\/letsencrypt\/live\/CERTIFICADOWILDCOMODO\/2025\/STAR_una_ac_cr.crt .\n\nscp -r root@10.0.2.30:\/etc\/letsencrypt\/live\/CERTIFICADOWILDCOMODO\/2025\/una.ac.cr.key .\n\nscp -r root@10.0.2.30:\/etc\/letsencrypt\/live\/CERTIFICADOWILDCOMODO\/2025\/My_CA_Bundle.ca-bundle .<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Creamos un full que contenga STAR y Bundle<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cat STAR_una_ac_cr.crt My_CA_Bundle.ca-bundle &gt; fullcert.crt<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verificamos el full<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl x509 -in fullcert.crt -noout -subject -issuer<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Resultado<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>subject=C = CR, ST = Heredia, O = Universidad Nacional, CN = *.una.ac.cr\nissuer=C = GB, O = Sectigo Limited, CN = Sectigo Public Server Authentication CA OV R36<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"815\" height=\"157\" src=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-261.png\" alt=\"\" class=\"wp-image-23297\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-261.png 815w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-261-300x58.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-261-768x148.png 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>verificar que la llave corresponde<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl x509 -noout -modulus -in fullcert.crt | openssl md5\nopenssl rsa -noout -modulus -in una.ac.cr.key | openssl md5<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"805\" height=\"263\" src=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-262.png\" alt=\"\" class=\"wp-image-23298\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-262.png 805w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-262-300x98.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-262-768x251.png 768w\" sizes=\"(max-width: 805px) 100vw, 805px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ahora en donde tenemos los certificados generamos los valores en base64 que necesitamos mas adelante<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cat fullcert.crt | base64 -w 0 > cert_b64.txt\ncat una.ac.cr.key | base64 -w 0 > key_b64.txt<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Esto nos crea 2 archivos con los valores <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"127\" src=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-265-1024x127.png\" alt=\"\" class=\"wp-image-23301\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-265-1024x127.png 1024w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-265-300x37.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-265-768x95.png 768w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-265.png 1169w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Abrimos <a href=\"https:\/\/console-openshift-console.apps.okd.una.ac.cr\/\">https:\/\/console-openshift-console.apps.okd.una.ac.cr\/<\/a><\/li>\n\n\n\n<li>Vamos a C argas de trabajo -> Secretos<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"386\" height=\"637\" src=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-263.png\" alt=\"\" class=\"wp-image-23299\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-263.png 386w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-263-182x300.png 182w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Le damos crear desde YAML<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"394\" src=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-264-1024x394.png\" alt=\"\" class=\"wp-image-23300\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-264-1024x394.png 1024w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-264-300x115.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-264-768x296.png 768w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-264-1536x591.png 1536w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-264.png 1580w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ahora pegamos <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: Secret\nmetadata:\n  name: apps-okd-tls-cert-una-ac-cr\ntype: kubernetes.io\/tls\ndata:\n  tls.crt: &lt;BASE64_DEL_FULLCERT>\n  tls.key: &lt;BASE64_DE_LA_KEY><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Y modificamos el vamor &lt;BASE64_DEL_FULLCERT> x el contenido del archivo cert_b64.txt<\/li>\n\n\n\n<li>Y &lt;BASE64_DE_LA_KEY> por el contenido de key_b64.txt<\/li>\n\n\n\n<li>Asi<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"475\" src=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-266.png\" alt=\"\" class=\"wp-image-23304\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-266.png 892w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-266-300x160.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-266-768x409.png 768w\" sizes=\"(max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lo creamos<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"727\" src=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-267.png\" alt=\"\" class=\"wp-image-23305\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-267.png 615w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-267-254x300.png 254w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Se crea <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-268-1024x555.png\" alt=\"\" class=\"wp-image-23306\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-268-1024x555.png 1024w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-268-300x163.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-268-768x416.png 768w, https:\/\/sada.services\/wp-content\/uploads\/2026\/03\/image-268.png 1262w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Y modificamos el despliegue de andrey para que vea el certificado<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: route.openshift.io\/v1\nkind: Route\nmetadata:\n  name: voto-mocion-web-route\n  labels:\n    app: voto-mocion-web\n    app.kubernetes.io\/part-of: voto-mocion\nspec:\n  host: votomocion.una.ac.cr\n  to:\n    kind: Service\n    name: voto-mocion-web-svc\n  port:\n    targetPort: https-port\n  tls:\n    termination: edge\n    insecureEdgeTerminationPolicy: Redirect\n    externalCertificate:\n      name: apps-okd-tls-cert-una-ac-cr\n  wildcardPolicy: None<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23296","post","type-post","status-publish","format-standard","hentry","category-sin-categoria"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/23296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23296"}],"version-history":[{"count":3,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/23296\/revisions"}],"predecessor-version":[{"id":23307,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/23296\/revisions\/23307"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}