cancel
Showing results for 
Search instead for 
Did you mean: 

Hola alguien me podria ayudar con este problema estoy creando el certificado para movilidad de SAP pero en este paso me da error

0 Kudos

anteriormente genere el certificado automático pero aun así no logro conectarme a sap desde mi móvil, es por eso que estoy intentando generar un certificado manual, alguien puede ayudarme,

gracias,

Accepted Solutions (0)

Answers (6)

Answers (6)

0 Kudos

una consulta ciando instalo el certificado en mi móvil y verifico el certificado me para rece en el usuario no en el sistema, sera que eso tiene relación con mi consulta anterior.

Gracias,

Saludos

former_member203638
Active Contributor
0 Kudos

Hola Alma, ¿Puedes copiar y pegar aqui los pasos exactos que estas siguiendo para generar el certificado?

Los mismo me paso, segun yo estaba siguiendo bien todos los pasos y me salia el mismo error que a ti. Revisando a conciencia me percate que me estaba brincando un paso.

Luego de eso ya tengo la aplicacion corriendo.

Saludos.

Alessandro.

0 Kudos

lo genere automático desde la venta del  B1iadmin, no si es es correcto

Saludos

0 Kudos
former_member203638
Active Contributor
0 Kudos

Intenta generarlo con los pasos descritos por Ivan o Gerardo, igual y no se esta generando de manera correcta desde esa tool.

Saludos.

Alessandro.

0 Kudos

de acuerdo, seguiré esos pasos te comento luego a ver como me va.

Saludos,

0 Kudos

hola alessandro fijate que estoy generando el certificado como dice la guía pero me eh atascado  en el paso 12 la contraseña me dice que es incorrecta, me pueden ayudar con esto porfavor

former_member203638
Active Contributor
0 Kudos

El password viene en C:\Program Files (x86)\SAP\SAP Business One Integration\B1iServer\Tomcat\conf\server.xml y deberia ser sapB1iP

Tu la cambiaste a "ejje" ???

Valida igual tus rutas, no es copiar y pegar por ejemplo en donde ponen:

C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator

Y yo tengo

C:\Program Files (x86)\SAP\SAP Business One Integration\B1iServer\Tomcat\webapps\B1iXcellerator

Saludos.

Alessandro

Message was edited by: Alessandro Lopez Santinelli

0 Kudos

Hola Alessandro fíjate que ya genere el certificado pero hoy resulta que no puedo hacer conexión con la base de datos me parece el siguiente error.

XCE001 Nested exception:

java.rmi.RemoteException: Error on completion of HTTPS-roundtrip: java.net.ConnectException: Connection refused: connect; nested exception is:

  java.net.ConnectException: Connection refused: connect

eh estado leyendo algunas notas que indican que se debe de reiniciar el servicio de SAP BUSSINES ONE  DI PROXY SERVICE pero yo tengo un problema no se me inicia me da error que ninguna aplicación lo usa, me podrías orientar en esto.

Saludos,

former_member203638
Active Contributor
0 Kudos

Hola Alma, revisa el siguiente link, hay varias alternativas para lo que expones.

Cannot connect to SAP Business One Integrated S... | SCN

¿Ya lograste conectar el movil?

Saludos.

Alessandro.

0 Kudos

Gracias por la ayuda.  alguien me podría ayudar  con la este inconveniente ya genere eh instale el certificado en mi movil pero aun me sigue apareciendo el mensaje de seguridad

0 Kudos

hola Me podría con la configuración de esta parte que puerto puedo usar

gonzalogomez
Active Contributor
0 Kudos

Ahi, no hay nada que configurar.

Deberías dejarlo como cualquier otro escenario.

Donde tienes que revisar que tienes ip es en el escenario WSforMobile, y la misma ip en el de tu empresa productiva, pero en teoría solo en la parte que identifica al servidor...

Creo que te estás liando....

0 Kudos

ya Genere el certificado, pero cuando lo instalo aun me sigue apareciendo el error de seguridad alguien tiene alguna idea de como solventar este paso.

Gracias,

gonzalogomez
Active Contributor
0 Kudos

Actualiza la versión de la app en el dispositivo a la última

gerardo_mendez
Active Contributor
0 Kudos

Hola de nuevo compañera.

No comprendo a que error te refieres pero tal vez esta nota te pudiera servir:

2298620 - Failed to connect due to certificate error
Version 3 Validity: 10.05.2016 - active
Language English

Content:    Summary   |   Header Data   |   Validity   |   References

Symptom

After upgrading to SAP Business One mobile app for Android 1.2.2, mobile fails to connect to server from due to certificate error.


Reproducing the issue

Scenario:

  1. Upgrade SAP Business One mobile app for Android to 1.2.2.
  2. Logon to SAP Business One server.

Expected Behavior:

Logon successfully.

Actual Behavior:

You receive the following error message: Connection failed


Cause

On Android 1.2.2, self-signed certificate generated based on IP address is no longer valid.


Solution

The described issue is fixed in SAP Business One mobile app for Android 1.2.3.

Workaround:

Regenerate certificate with domain name or server name following SAP Note 2019275. Make sure that mobile setting server address is the same as certificate generated domain name/server name.


Other terms

SSL Certificate



Header Data

Released On10.05.2016 11:09:21
Release StatusReleased for Customer
ComponentSBO-INT-MOB Mobile Anwendungen
PriorityCorrection with high priority
CategoryProgram error

Validity

Software Component

Version

SAP B1 ANDROID APPLICATIONS

1.2


No lo olvides que:

Es importante contar con el apoyo y la aceptación entre los miembros que formamos parte de esta comunidad.  Tanto quien escribe una pregunta, como quien responde la misma, debe recibir un feedback constante.


Si no llegaramos a comprender para qué dar puntos, o dar feedback, la relación de comunidad se rompe. Cuando abrimos un nuevo tema (una nueva discusión) y recibimos ayuda, pero no agradecemos dando "puntos de reputación", es como que no nos importara que otras personas hayan gastado su tiempo en compartir sus soluciones con nosotros.


Puntos de reputación en las discusiones:

Quien responde recibe:Quien pregunta debe presionar:
5 puntos por respuesta que "ayude"
Límite: 15 por discusión.
10 puntos por respuesta "correcta"
Límite: 1, una vez que marcamos una respuesta como correcta, el tema queda marcado como "solucionado".


Saludos.

0 Kudos

la que tengo es la versión 1.2.3

0 Kudos

me refiero que ya genere el certificado manual con los pasos de la nota lo instalo en en teléfono y aun así me da error seguridad, no que otros pasos tengo que realizar.

gonzalogomez
Active Contributor
0 Kudos

Tienes que revisar que la ip esté en todos los sitios

Revisa en el SLD y en B1if que en el escenario de la empresa y del WS Mobile tengas ip y no el nombre del servidor.

Former Member
0 Kudos

Estimada Alma,

Concuerdo con lo que te menciono Gonzalo Gomez, en que revises en e B1if, lo que tiene que ver con que todo este configurado con IP nombre del servidor, esto me sucedia hasta que revise la nota SAP de problemas de dispositivos y en esta se tiene un apartado que dice:

Slds,

IFV

0 Kudos

Hola Gracias por la aportación adjunto captura de la configuración que tengo actualmente.

gonzalogomez
Active Contributor
0 Kudos

Si pero ahi tienes que revisar que el escenario de la empresa en la que te conectas, tiene ip en todos los campos que hacen referencia al servidor.

Detecto que el escenario es BOCADELI, pues en todos los datos de arriba hacia abajo tiene que tener especificada la ip del server

Y también en el escenario de WS for Mobile tiene que estar la ip y no el nombre.

Reinicias los servicios después del cambio.

0 Kudos

Hola Y verifique y en todas las configuraciones esta la ip del servidor, no se que mas puedo verificar

Saludos,

gonzalogomez
Active Contributor
0 Kudos

Notas SAP: 1776825, 1602674, 1924930, 2029714

gerardo_mendez
Active Contributor
0 Kudos

Como complemento a lo que atinadamente te sugiere el compañero Ivan, checa el siguiente documento y los comentarios que se visualizan al final:

How to create your SSL for mobile devices

Saludos.

0 Kudos

Gracias en estos momentos lo reviso.

Saludos

gerardo_mendez
Active Contributor
0 Kudos

De acuerdo Alma, espero encuentres una solución entre los comentarios que se te han proporcionado.

Te recomiendo pasar por el siguiente documento:

0 Kudos

la Ya seguí instrucciones es mencionadas pero  me e quedado estancada en el paso 11 me a pare  el mensaje que muestra en pantalla, me podrían orientar por favor,


Gracias.

gerardo_mendez
Active Contributor
0 Kudos

Creo que estás poniendo -destorepassword y la instrucción es -deststorepass.

Espero puedas darte una vuelta al documento que te comente sobre reputar a quienes ayudan.

Aquí te anexo la nota de sap sobre el tema:

Symptom

To ensure the highest security standard for your company and your business data, SAP introduced the exclusive use of valid SSL certificates.
Securing your SAP Business One mobile application with a valid SSL certificate can be crucial. Fortunately, it is quite simple to do this.
In some situations it may be required that you buy a trusted certificate, but there are many cases where you can generate and use a self-signed
certificate for free.
Be aware that SAP cannot cover all possible security aspects due to customer-specific requirements and conditions. The mobile app needs to be
embedded into each customer’s specific security concept. Nevertheless, some manual action is required.

In this SAP Note, SAP presents examples of how to obtain and install valid certificates.
For more details, technical backgrounds or questions please consult your partner or the diverse information sources that are available on this
standard security technology.

SAP enhanced the security of the SAP Business One mobile app on SSL connections gradually in the following way:

  • 1st security stage - Using valid certificates was RECOMMENDED

Starting with SAP Business One mobile app 1.10.0 for iOS and SAP Business One mobile app 1.1.4 for Android, the apps showed this warning message during the logon phase if no valid SSL certificate was deployed:

    • The certificate for this server was not issued by a trusted certificate authority. In future version the connection to the server will be disabled until valid certificate is deployed. Contact your IT administrator for more details

In this stage/this app versions, the message could be suppressed by disabling the parameter 'Enforce Certificate Check' in the settings for SAP Business One mobile app on the device.

  • 2nd security stage - Using valid certificates is MANDATORYStarting with SAP Business One mobile app 1.11.1 for iOS and mobile app 1.2.0 for Android, a SSL connection without a valid SSL certificate is not possible anymore. The mobile apps show this message at logon:
    • The certificate for this server was not issued by a trusted certificate authority. The connection to the server is disabled. Contact your IT administrator for more details

Picture1.png Using valid certificates is strongly recommended at the 1st security stage, and mandatory at the 2nd security stage.

SolutionThe following informs on how to keep or make SAP Business One mobile apps working with valid certificates.How to obtain a valid certificatePlease Note: SAP cannot give recommendations when to use a self-signed certificate or a signed certificate from trusted third party. The selection depends on the specific use and the selected environment, as for example VPN, dev/test systems, intranet/internet solutions, value/type of transferred information, incentive for someone to attack the connection, security needs, etc.

**Please read the following instructions carefully and pay attention to uppercase and lowercase (entries are case-sensitive)!** Note: For the keytool commands mentioned below, you need the following information:

  • keytool.exe location: ./SAP Business One Integration/sapjre_7_64/jre/bin/ (for 64-bit Windows system)  or ./SAP Business One Integration/sapjre_7_32/jre/bin/ (for 32-bit Windows system)
  • Keystore file: ./webapps/B1iXcellerator/.keystore (relative to the Tomcat base directory)
  • Keystore password (<keystorepassword>): Find the default password in the ./Tomcat/conf/server.xml file in the keystorePass attribute
  • Key password (<keypassword>): The default key password is the same as the keystore password
  • Key alias: tomcat
  • If you are using Windows Command prompt, please ensure to run the command prompt as Administrator

Generally there are three options to obtain a valid certificate: A. Purchase a signed certificate from trusted third party certification authority (CA) vendor

  1. Follow the steps provided by the CA vendor to receive a trusted CA signed certificate for the system.
  2. Deploy the trusted CA signed certificate on the SAP Business One Integration Framework (B1i) server using step i or ii:
    1. Modify the existing B1i keystore file by deleting the existing entry using the command below and then importing the new certificate using the CA vendors instructions. Please modify the keystore path as necessary when deleting the existing entry:
      • keytool -delete -alias tomcat -keystore ./webapps/B1iXcellerator/.keystore -storepass <keystorepassword>
    2. Replace the existing B1i keystore file with the keystore created according to the instructions provided by CA vendor and update the Tomcat server.xml to refer to the new keystore:
      • Open and update ./Tomcat/conf/server.xml to refer to the new keystore and password: keystoreFile="./webapps/B1iXcellerator/<keystorefilename>" keyAlias="tomcat" keystorePass="<keystorepassword>"
  3. Restart the Integration Framework service
  4. Verify the certificate has been successfully imported by checking access to the integration framework via the https port (for example, open https://<servername_or_ip>:8443on the browser in the mobile device. If successful, you should not receive any browser warnings regarding https/certificates)

Note: In case you encounter any issue in above steps, please consult your CA vendor.B. Create a self-signed certificate using the Certificate ToolAs of integration framework (B1if) version 1.22.0 (delivered with SAP Business One 9.1 PL08 and SAP Business One 9.1, version for SAP HANA PL08), the integration framework provides a Certificate Tool. The certificate tool automates the creation of a root certificate and a self-signed server certificate based on the root certificate, it also deploys the server certificate to the integration framework keystore. Based on the server certificate, the tool creates an SSL certificate for the mobile device that connects to the integration framework with the SAP Business One mobile app.Prerequisites

  • The OpenSSL tool (openssl.exe) is available in the ..\B1iXcellerator\openssl\bin folder.
  • During certificate creation, the integration framework checks whether the tool is available in the folder.
  • If the tool is not available, manually install OpenSSL: https://www.openssl.org/community/binaries.html .

Procedure

  1. To open the tool, choose Tools → Certificate Tool.
  2. In the Domain Name field, enter the domain name the certificate is issued to. If you do not enter a name, the integration framework uses the local machine name.
  3. To create and deploy the self-signed certificate to the integration framework keystore, click the Create Certificate button.
    The integration framework creates the certificate in the ..\B1iXcellerator\B1iCert folder. The path depends on where you have installed the integration framework.
  4. To reset to the default keystore that the installation program created, click the Reset Certificate button
  5. Note: After certificate creation or reset, restart the SAP Business One Integration Service

ResultAfter creation, you can find the myCA.cert file in the ..\B1iXcellerator\B1iCert folder. Make the certificate available to the mobile device as detailed in step 5 below. C. Create a self-signed certificate manuallyFor integration framework (B1if) version below 1.22.0 (up to SAP Business One 9.1 PL07 and SAP Business One 9.1, version for SAP HANA PL07), this is the recommended way for creation of self-signed certificate.
On Windows environment, openssl is not pre-installed with system. Download Win32 or Win64 openssl installer from https://www.openssl.org/related/binaries.html

  • The default installation path is c:\openssl-win64  (for 64-bit Windows system) or c:\openssl-win32  (for 32-bit Windows system)
  • before using openssl, run command: set OPENSSL_CONF=c:\openssl-win64\bin\openssl.cfg  (for 64-bit Windows system) or set OPENSSL_CONF=c:\openssl-win32\bin\openssl.cfg  (for 32-bit Windows system)
    2-6-2015 5-38-04 PM.png

             1. Create your own root CA (if it does not exist for other reason)1.1 Create a private key file: openssl genrsa -out ServerKey.key 1024
createpriviatekey.png
1.2 Create the certificate (to be deployed to mobile devices): openssl req -new -x509 -key ServerKey.key -out myCA.cer -days 3650 -subj /CN="custom_CA_name"Note: The "custom_CA_name" value should not match the value used for "server_domain_name" in step 2.2
1.2i.png
             2. Create self-signed certificate for multiple servers  2.1 Create a private key: openssl genrsa -out ClientKey.key 1024
2.1.png
2.2 Create the CSR (Client Signing Request): openssl req -new -key ClientKey.key -out CertReq.csr -subj /CN="server_domain_name"Note "server_domain_name" should be exactly the same value used for the server field in mobile app settings (for example the server name or the server ip address).
2.2.png
2.3 Use the CSR to create the certificate based on your own CA key file: openssl x509 -req -days 3650 -in CertReq.csr -CA myCA.cer -CAkey ServerKey.key -CAcreateserial -out ClientCert.crt
2.3.png
            3. Deploy the self-signed certificate on the SAP Business One Integration Framework (B1i) server3.1 Create a PKCS12 keystore and import: openssl pkcs12 -export -inkey ClientKey.key -in ClientCert.crt -out keystore.pkcs12 (For the Export Password, please enter the default Keystore password)
3.1.png
3.2 Copy keystore.pkcs12 file to B1 Integration Framework (B1i) server (for example ./webapps/B1iXcellerator/keystore.pkcs12) to make sure that it can be accessible by keytool3.3 In the Command Prompt, move to the Integration Framework jre bin path (32bit or 64bit based on your system): <SAP Business One Integration path>\sapjre_7_32\bin (for example cd C:\Program Files (x86)\SAP\SAP Business One Integration\sapjre_7_32\bin). NOTE: In previous versions of the Integration Framework this folder might be: \sapjre_6_32\bin.3.4 Delete the original self-signed certificate from the keystore: keytool -delete -alias tomcat -keystore "C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator\.keystore" -storepass <keystorepassword>
3.4.png
3.5 Convert PKCS12 keystore into Java keystore: keytool -importkeystore -srckeystore "C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator\keystore.pkcs12" -srcstoretype PKCS12 -destkeystore "C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator\.keystore" -deststoretype JKS -deststorepass <keystorepassword> -srcstorepass <keystorepassword>3.5.PNG3.6 Change the default alias name to tomcat: keytool -changealias -alias 1 -destalias tomcat -keystore "C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator\.keystore" -storepass <keystorepassword>   
3.6.PNG
             4. Restart SAP Business One Integration Service from Services panel.             5. Install your own created root CA certificate on mobile devices.         The app settings should use the servername/domain or IP as defined in the certificate.Procedure for iOS devices

  • Email myCA.cer file to the iOS device
  • Click the email attachement to install the CA into the system

Procedure for Android devices

  • Copy the myCA.cer file via a microSD card onto the Android device
  • Install the file via Settings → Security → Credential Storage and selecting “Install from storage” and follow the prompts

             6. Verify the certificate has been successfully imported

Check access to the integration framework via the https port (for example, open https://<servername/IP>:8443 in the browser of the mobile device. If successful, you should not receive any warning regarding https/certificates)

Header Data

Released On21.04.2016 05:05:23
Release StatusReleased for Customer
ComponentSBO-INT-MOB Mobile Anwendungen
PriorityCorrection with high priority
CategoryFAQ

Validity

Software Component

Version

SAP B1 ANDROID APPLICATIONS

All versions

SAP B1 IOS APPLICATIONS

All versions

SAP B1 VERSION FOR SAP HANA

8.82

9.0

9.1

SAP BUSINESS ONE

8.8

8.81

8.82

9.0

9.1


0 Kudos

Gracias ya genere el certificado, pero aun me siguió dando error de Seguridad no que mas hacer

gerardo_mendez
Active Contributor
0 Kudos

Hola Alma, si el incidente de esta discusión ha sido solucionado te sugiero agradecer a los compañeros que amablemente te apoyaron (puedes hacerlo marcando sus respuestas como respuestas de ayuda) y marcar como respuesta correcta el comentario que te ayudó a lograr tu objetivo que era crear el certificado web.

Es muy importante que se maneje un solo tema por discusión y que éste tenga marcada su respuesta correcta para que así, usuario que tengan el mismo problema que tú, puedan recibir una correcta orientación.

Si tiene un nuevo problema te recomiendo abrir una nueva discusión para exponerlo.

Si de algo te sirvo te dejo algo de documentación sobre movilidad:

Dropbox - B1_MobileApp_Guide_Android.pdf

https://www.dropbox.com/s/jindkrwjj7svlpy/B1_MobileApp_Guide_v9.0.pdf?dl=0

Dropbox - CREAR CERTIFICADO PARA MOVILIDAD_v1.docx

Former Member
0 Kudos

Estimada Alma,

A continuación te dejo los pasos para que generes el certificado.

com.microsoft.sqlserver.jdbc.SQLServerDriver

jdbc:sqlserver://LENOVO-PC:1433;integratedSecurity=false;databaseName=BD_productiva;selectMethod=cursor;applicationName=IntegrServerSBO-COMMON

revizar que tiene java (JRE y JDK) si no se debe instalar

cd C:\OpenSSL-Win64\bin

set OPENSSL_CONF=c:\openssl-win64\bin\openssl.cfg

openssl genrsa -out ServerKey.key 1024

openssl req -new -x509 -key ServerKey.key -out myCA.cer -days 3650 -subj /CN="Certificado"

openssl genrsa -out ClientKey.key 1024

openssl req -new -key ClientKey.key -out CertReq.csr -subj /CN="186.155.236.98"

openssl x509 -req -days 3650 -in CertReq.csr -CA myCA.cer -CAkey ServerKey.key -CAcreateserial -out ClientCert.crt

openssl pkcs12 -export -inkey ClientKey.key -in ClientCert.crt -out keystore.pkcs12

sapB1iP

sapB1iP

copie el archivo keystore.pkcs12 de C:\OpenSSL-Win64\bin a C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator

cd C:\Program Files (x86)\SAP\SAP Business One Integration\sapjre_7_64\jre\bin

keytool -delete -alias tomcat -keystore "C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator\.keystore" -storepass sapB1iP

keytool -importkeystore -srckeystore "C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator\keystore.pkcs12" -srcstoretype PKCS12 -destkeystore "C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator\.keystore" -deststoretype JKS -deststorepass sapB1iP -srcstorepass sapB1iP

keytool -changealias -alias 1 -destalias tomcat -keystore "C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator\.keystore" -storepass sapB1iP

reiniciar servicios

Espero sea de tu ayuda,

Saludos,

IFV

Former Member
0 Kudos

Hola si te comprendí Bien  lo que necesitas es crear un certificado Digital para Configurar tu SBO Mailer

y que te funcione sap desde lo Moviles ??

si es Asi utiliza la Seguridad de sap y ya  es mas sencillo

Déjame tu correo y te comparto un Documento de como hacerlo

0 Kudos

Hola Gracias por la ayuda mi correo es alma.montes@ejje.com

Saludos

0 Kudos

Gracias por la ayuda verificare y realizare estos pasos

Saludos