Files
masi-3ds-cypher/README.md
2025-12-06 21:11:50 +01:00

19 lines
602 B
Markdown

# Generate a keystore
```bash
keytool -genkeypair -alias <alias> -keyalg RSA -keysize 2048 -keystore <path/to/keystore.p12> -storetype PKCS12 -storepass <password> -validity 365
```
# Export certificate
```bash
keytool -exportcert -alias <alias> -keystore <path/to/keystore.p12> -storetype PKCS12 -storepass hepl -file <path/to/generated/cert.crt>
```
# Import certificate
```bash
keytool -importcert -alias <alias> -file <path/to/cert.crt> -keystore <path/to/keystore.p12> -storetype PKCS12 -storepass <password>
```
# Passwords
- Key store pwd : hepl_keystore
- Trust store pwd : hepl_truststore