Package io.ktor.network.tls.certificates
Types
Functions
Link copied to clipboard
Create a keystore and configure it in block function
Link copied to clipboard
fun generateCertificate(file: File, algorithm: String = "SHA1withRSA", keyAlias: String = "mykey", keyPassword: String = "changeit", jksPassword: String = keyPassword, keySizeInBits: Int = 1024): KeyStore
Content copied to clipboard
Generates simple self-signed certificate with keyAlias name, private key is encrypted with keyPassword, and a JKS keystore to hold it in file with jksPassword.
Link copied to clipboard