S
S
Sergey Kamyshev2018-04-24 12:26:48
Android
Sergey Kamyshev, 2018-04-24 12:26:48

How to properly generate certificates for the server and start it up?

There is a description - https://github.com/rctl/CryptoVoice
How to generate certificates correctly? Using the command line or in what way? Who knows, tell me in more detail how to perform this procedure!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Satisfied IT, 2018-04-24
@ser_cool_geek

For whom it is written:

  1. Go into the server folder of the repository.
  2. Generate server certificate with keytool -genkey -keystore keystore.jks -keyalg RSA (Save password used here)
  3. Self sign server certificate with keytool -selfcert -alias mykey -keystore keystore.jks -validity 3950
  4. Export certificate as crt file with keytool -export -alias mykey -keystore keystore.jks -rfc -file server.crt
  5. Move certificate file into android asset folder with mv server.crt ../app/main/assets/
  6. Move the Settings.java.example file in server folder to Settings.java and edit the file with your keystore password used in earlier steps
  7. Compile and run the server (prefferably at a publicly accessiable server) javac *.java && java Switchboard
  8. Make sure server is accessible and no ports are being blocked
  9. Go into app/src/main/java/io/rtek/rtvoice/ and move Settings.java.example to Settings.java
  10. Change settings in Settings.java to reflect your server ip address
  11. Compile and run app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question