Skip to content

Commit

Permalink
#15 Cambios en los certificados
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroGlezC committed May 15, 2024
1 parent b4d577a commit a01dab3
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 52 deletions.
38 changes: 17 additions & 21 deletions docker/keycloak/certs/keycloakcert.pem
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
-----BEGIN CERTIFICATE-----
MIIDazCCAlOgAwIBAgIUCUhmEtT15ZBtBIuKRa9XvvpSG1QwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yNDA1MDkyMjMxMTFaFw0yNTA1
MDkyMjMxMTFaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQCrbhTJLxz3hxs0ZZz8kgCIWq1lG/1CyFdB3uL1ga5W
Gz6rj+0hEdsbINfmnGi3kx+zdYUVvXL7IqfibVZ/MoVTO/mC5iNVjaosr1Ly2SF9
7ePLDPLWqi6bD3OhnStBW6EMFX51HgwLPuh95eoh21b4eoMr4gnU2jGnEBmPmhE/
5USDUT85MQxJr4kcHhyshguJPIaa9BROHgxRx75OTC/XJbb8rqvMcBejAJCysbui
D/GiCPbl9t4CPHVZIjWd8stupweCG10x69MllpQULLZNc4Dnm9o2t77mfoo92a13
kTdLSf4JoqIeUB/6bc6x8y6vfcuk4YoC5zACu3ZgcotbAgMBAAGjUzBRMB0GA1Ud
DgQWBBSCltsX8CA1kuy3s7DsFgu9xXo3dTAfBgNVHSMEGDAWgBSCltsX8CA1kuy3
s7DsFgu9xXo3dTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBx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4jGZIS648rijC8g7jMu1GY+S9M
/yh9To5sZGciKUQNXR7+L7fjzIaW+tzbziWwvAhCHXEQBZvqR6rrI/fVr4eylntJ
iHxqbTM9SDYoygKfmSSGAN+O11TlMg07q3mTUxWJQK0+u9EWucqDvv9Iy33cMyfg
6TdRcDIAqJt2jp8u27d1KeFGT91q4qHDLbISlL2b56dL/AoUD8qofoeNFT0uLaH8
9ik+Fm2w
-----END CERTIFICATE REQUEST-----
17 changes: 17 additions & 0 deletions docker/keycloak/certs/keycloakcert2.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE REQUEST-----
MIICojCCAYoCAQAwADCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMCS
sot/zNlSDQt6CtYcYmKOwRlHV7KH2MeES9/UuWy1aHKb3WsCi/3yWqk+bK1a3dnn
BnCwgPHPLdm/r2o3Fpy22buf3smN+beKbJba2xncXHQ2x8IHGO5RzJpni8fytOum
I8HH7ElDYN7wbKHoux2PzGaDKWSIi9iCcuMiniJPMSn2ebi1dod0sY4pj6juNcLL
UsTPY0OuSEMTgGnXEblbeR5U9+p/POd3SrHqcINLkWN5msKHmTCNasMoNQ8artLF
fg3kHh/wQQbi1R+0ZbEmrYpok1Fk5xtwVL3S8Bwmz1CcAovc1eD+tbBIORcgDKXe
06qisZuIrKd0w5PM6CcCAwEAAaBdMFsGCSqGSIb3DQEJDjFOMEwwSgYDVR0RBEMw
QYI/c3lnLWtleWNsb2FrLmhkZzVmZ2hwY2VmN2E4YTIud2VzdGV1cm9wZS5henVy
ZWNvbnRhaW5lci5pbzo4MDkwMA0GCSqGSIb3DQEBCwUAA4IBAQAYNnsjoohP5KJo
LPJAq6T7TMD57x+0Lebk50d35v3JFVB9hT0U+4ZtTJ8OHmNmMeBinyCRvjwUitqI
tMcNIjDJP0cegmBX1ioM7dy+MhEYEQJp/Moo9T4jGZIS648rijC8g7jMu1GY+S9M
/yh9To5sZGciKUQNXR7+L7fjzIaW+tzbziWwvAhCHXEQBZvqR6rrI/fVr4eylntJ
iHxqbTM9SDYoygKfmSSGAN+O11TlMg07q3mTUxWJQK0+u9EWucqDvv9Iy33cMyfg
6TdRcDIAqJt2jp8u27d1KeFGT91q4qHDLbISlL2b56dL/AoUD8qofoeNFT0uLaH8
9ik+Fm2w
-----END CERTIFICATE REQUEST-----
55 changes: 27 additions & 28 deletions docker/keycloak/certs/keycloakkey.pem
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCrbhTJLxz3hxs0
ZZz8kgCIWq1lG/1CyFdB3uL1ga5WGz6rj+0hEdsbINfmnGi3kx+zdYUVvXL7Iqfi
bVZ/MoVTO/mC5iNVjaosr1Ly2SF97ePLDPLWqi6bD3OhnStBW6EMFX51HgwLPuh9
5eoh21b4eoMr4gnU2jGnEBmPmhE/5USDUT85MQxJr4kcHhyshguJPIaa9BROHgxR
x75OTC/XJbb8rqvMcBejAJCysbuiD/GiCPbl9t4CPHVZIjWd8stupweCG10x69Ml
lpQULLZNc4Dnm9o2t77mfoo92a13kTdLSf4JoqIeUB/6bc6x8y6vfcuk4YoC5zAC
u3ZgcotbAgMBAAECggEAP/L7FweXrzC7scKcGs3eG/9zgm27/q8cecqK8Jl1LtLQ
AJDanQT7rrWERJchKyXbZAcZY8A9xbgqV3mBFEcE3EVZsP5nvPDxQ+UNNOFRsJfO
636Dkhd+9kH/2RB3w9RKEedsuoTAamuHr/tV6VZYra2KBBM4pqnUbuU/G8YV3Dbu
J8bAbFcXKY8ZSKGoEEE+VGPWi5TSoamwu5ztakDU7m2zdLsfld4YylPiIp1ed92N
7vl7lv+ySDeJc3ioih6t0GRS2KmudFTkqPGiSaiON3ZvQjBFRqLyo+Td4LH6X9AI
JBLmgRXR0ivc46mEFCnnxhiN96lPkEfdKyjeVx5qXQKBgQDh5udgrQgyN0aAAGJh
UwB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NraEUA6MHWvqPlme4qTsQn0nl9SE603xBzVXunxAoGAXTVu
m6EQ8tBPZhJ/KDBl/QNcQYyQWmGdiXr20jWKCxajRLpsFWo3MBXN7jcK3Djqd+oJ
+kR7X8fdBo8joZMU90vxvCDqAHDv0tdVfWms6Wvoekv1AvJ8Vys8tqMetahI5g2j
fOfOeugvJJGTbYAzGisNTls022kfvfrsWuO4vmkCgYBSvaqTiG8j3UVpAaG40/B6
zb5EdFWHsw8IaG2B8/ksmAKjXOe1O1V5CFfSv7kpOdrp57nTw+fui6COEacIxF8T
wIZEvbZ5Va5iSQK1bBhW6xmmT3s3AZCh9WSQAGefMUovQJixoOcN/RUvDHG6VN4T
qDv4mEW1UXOeb+Dhm4aFHw==
-----END PRIVATE KEY-----
28 changes: 28 additions & 0 deletions docker/keycloak/certs/keycloakkey2.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCrbhTJLxz3hxs0
ZZz8kgCIWq1lG/1CyFdB3uL1ga5WGz6rj+0hEdsbINfmnGi3kx+zdYUVvXL7Iqfi
bVZ/MoVTO/mC5iNVjaosr1Ly2SF97ePLDPLWqi6bD3OhnStBW6EMFX51HgwLPuh9
5eoh21b4eoMr4gnU2jGnEBmPmhE/5USDUT85MQxJr4kcHhyshguJPIaa9BROHgxR
x75OTC/XJbb8rqvMcBejAJCysbuiD/GiCPbl9t4CPHVZIjWd8stupweCG10x69Ml
lpQULLZNc4Dnm9o2t77mfoo92a13kTdLSf4JoqIeUB/6bc6x8y6vfcuk4YoC5zAC
u3ZgcotbAgMBAAECggEAP/L7FweXrzC7scKcGs3eG/9zgm27/q8cecqK8Jl1LtLQ
AJDanQT7rrWERJchKyXbZAcZY8A9xbgqV3mBFEcE3EVZsP5nvPDxQ+UNNOFRsJfO
636Dkhd+9kH/2RB3w9RKEedsuoTAamuHr/tV6VZYra2KBBM4pqnU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==
-----END PRIVATE KEY-----
6 changes: 3 additions & 3 deletions docker/keycloak/keycloak.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV KEYCLOAK_ADMIN=admin
ENV KEYCLOAK_ADMIN_PASSWORD=admin

# Copiar archivos de certificado y clave privada
# COPY ./certs /opt/keycloak/certs
COPY ./certs /opt/keycloak/certs

# Copiar el archivo de importación del realm al directorio de importación
COPY ./imports/realm.json /opt/keycloak/data/import/
Expand All @@ -17,5 +17,5 @@ EXPOSE 8080
EXPOSE 8090

# Comando para iniciar Keycloak en modo de desarrollo con puerto y otros argumentos
CMD ["start-dev", "--import-realm", "--http-port=8090", "--hostname-url=http://syg-keycloak.hdg5fghpcef7a8a2.westeurope.azurecontainer.io:8090"]
# CMD ["start", "--import-realm", "--http-port=8100", "--https-port=8090", "--hostname-url=https://syg-keycloak.hdg5fghpcef7a8a2.westeurope.azurecontainer.io:8090", "--https-certificate-file=/opt/keycloak/certs/keycloakcert.pem", "--https-certificate-key-file=/opt/keycloak/certs/keycloakkey.pem"]
# CMD ["start-dev", "--import-realm", "--http-port=8090", "--hostname-url=http://syg-keycloak.hdg5fghpcef7a8a2.westeurope.azurecontainer.io:8090"]
CMD ["start", "--import-realm", "--http-port=8100", "--https-port=8090", "--hostname-url=https://syg-keycloak.hdg5fghpcef7a8a2.westeurope.azurecontainer.io:8090", "--https-certificate-file=/opt/keycloak/certs/keycloakcert.pem", "--https-certificate-key-file=/opt/keycloak/certs/keycloakkey.pem"]

0 comments on commit a01dab3

Please sign in to comment.