19 lines
602 B
Markdown
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
|