Commit inicial: fuentes MBS ERP (Genero 6) + .gitignore + docs/SETUP_PC_MBS.md
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
1) crear el certificado cliente (auto firmado):
|
||||
|
||||
1.0 O sea, se va a crear un certificado autofirmado, sin siquiera crear un CA para ese certificado. Usualmente con eso basta.
|
||||
|
||||
1.1 Crear el Serial:
|
||||
echo 01 > MyClient.srl
|
||||
|
||||
1.2 Crear el Request y private key:
|
||||
openssl req -new -out MyClient.csr -keyout privkey.pem
|
||||
|
||||
1.3 Eliminar la clave de la clave privada:
|
||||
openssl rsa -in privkey.pem -out MyClient.pem
|
||||
|
||||
1.4 Crear el certificado cliente auto-firmado y que dura 1 año:
|
||||
openssl x509 -in MyClient.csr -out MyClient.crt -req -signkey MyClient.pem -days 365
|
||||
|
||||
2) configurar el certificado cliente en el fglprofile asociado:
|
||||
|
||||
2.1 crear el archivo fglprofile_ws.txt y apuntarlo por la variable FGLPROFILE
|
||||
|
||||
2.2 agregar los siguientes 2 datos:
|
||||
|
||||
security.id1.certificate = "certificados/MyClient.crt"
|
||||
security.id1.privatekey = "certificados/MyClient.pem"
|
||||
|
||||
NOTAS:
|
||||
- el identificador "id1" es libre. Se puede cambiar y tambien modificar en el punto 3
|
||||
|
||||
3) asociar la URL del servicio al certificado cliente:
|
||||
|
||||
3.1 agregar las siguientes lineas al fglprofile_ws.txt (apuntado por la variable FGLPROFILE)
|
||||
|
||||
ws.ws_rest.url = "https://ws.marmotech.com.do:8098/gas/ws/r/restserver"
|
||||
ws.ws_rest.security = "id1"
|
||||
|
||||
NOTAS:
|
||||
- el identificador de seguridad, en este caso "id1", debe ser el indicado en el paso 2.2
|
||||
- el identificador del servicio, en este caso "ws_rest", tambien se puede cambiar por algun nombre que identifique al server.
|
||||
|
||||
Reference in New Issue
Block a user