cryptography:certificates
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cryptography:certificates [2014/02/25 11:26] – [Android] skipidar | cryptography:certificates [2023/11/01 07:13] (current) – ↷ Page moved from business_process_management:camunda:cryptography:certificates to cryptography:certificates skipidar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Certificates ===== | ||
| + | Nice Introduction | ||
| + | https:// | ||
| + | ==== Java ==== | ||
| + | In Java Certificates are packed in Java Keystores. | ||
| + | |||
| + | The can be exported from Java Keystore by doing. Details [[http:// | ||
| + | < | ||
| + | keytool | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Android ==== | ||
| + | The keystores which android do understand have do have the type BKS (Bouncycastle). | ||
| + | The bouncyCastel must have teh version bcprov-ext-jdk15on-1.46.jar, | ||
| + | |||
| + | The Android Keystoree can be creatd using Java's keytool as following: | ||
| + | |||
| + | < | ||
| + | |||
| + | REM Dieses Script generiert ein client-keystore, | ||
| + | REM Das Script soll dazu verwendet werden Produktivzertifikate in einen Keystore zu packen und mit der App auszuliefern. | ||
| + | REM | ||
| + | REM Benutzung: die Zertifikate, | ||
| + | |||
| + | setlocal ENABLEDELAYEDEXPANSION | ||
| + | |||
| + | SET SCRIPT_KEYSTORE_FILE_NAME=client_keystore_bks.ks | ||
| + | SET ALIAS_PREFIX=uic918_dsa_sign_ivu_ | ||
| + | SET BOUNCYCASTLE=bcprov-ext-jdk15on-1.46.jar | ||
| + | |||
| + | echo Creating an empty keystore | ||
| + | keytool -genkey -storepass tough1 -keypass tough1 -alias test -keystore %SCRIPT_KEYSTORE_FILE_NAME% -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath %BOUNCYCASTLE% -dname " | ||
| + | keytool -delete -storepass tough1 -keypass tough1 -alias test -keystore %SCRIPT_KEYSTORE_FILE_NAME% -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath %BOUNCYCASTLE% | ||
| + | |||
| + | if not exist " | ||
| + | |||
| + | cls | ||
| + | echo ------------------------------------------------------------------- | ||
| + | |||
| + | |||
| + | set /A cnt=1 | ||
| + | for %%f in (*.cer) do ( | ||
| + | echo %%~nf | ||
| + | keytool -import -trustcacerts -alias " | ||
| + | set /A cnt=cnt+1 | ||
| + | ) | ||
| + | |||
| + | |||
| + | goto FINISHED | ||
| + | |||
| + | |||
| + | : | ||
| + | echo ERROR: could not create the certificate file: %SCRIPT_KEYSTORE_FILE_NAME% | ||
| + | exit /b 1 | ||
| + | |||
| + | |||
| + | :FINISHED | ||
| + | exit /b 0 | ||
| + | </ | ||
