summaryrefslogtreecommitdiff
path: root/nexus/src/main/kotlin/tech/libeufin/nexus/KeyFiles.kt
diff options
context:
space:
mode:
authorAntoine A <>2024-03-27 00:11:10 +0100
committerAntoine A <>2024-03-27 00:11:10 +0100
commit9dfbc9391fe27fc631bdf61e3e51dd3a124a4c60 (patch)
tree5cc6cae102a6983044778494388fae039b76b057 /nexus/src/main/kotlin/tech/libeufin/nexus/KeyFiles.kt
parent00e8988a760d8e73225424185701c1f59508840a (diff)
downloadlibeufin-9dfbc9391fe27fc631bdf61e3e51dd3a124a4c60.tar.gz
libeufin-9dfbc9391fe27fc631bdf61e3e51dd3a124a4c60.tar.bz2
libeufin-9dfbc9391fe27fc631bdf61e3e51dd3a124a4c60.zip
Improve self-signed certificate
Diffstat (limited to 'nexus/src/main/kotlin/tech/libeufin/nexus/KeyFiles.kt')
-rw-r--r--nexus/src/main/kotlin/tech/libeufin/nexus/KeyFiles.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/KeyFiles.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/KeyFiles.kt
index fd91cfd4..b4acbb75 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/KeyFiles.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/KeyFiles.kt
@@ -58,7 +58,7 @@ object RSAPublicKeySerializer : KSerializer<RSAPublicKey> {
override fun deserialize(decoder: Decoder): RSAPublicKey {
val fieldValue = decoder.decodeString()
val bytes = Base32Crockford.decode(fieldValue)
- return CryptoUtil.loadRsaPublicKey(bytes)
+ return CryptoUtil.loadRSAPublic(bytes)
}
}
@@ -76,7 +76,7 @@ object RSAPrivateCrtKeySerializer : KSerializer<RSAPrivateCrtKey> {
override fun deserialize(decoder: Decoder): RSAPrivateCrtKey {
val fieldValue = decoder.decodeString()
val bytes = Base32Crockford.decode(fieldValue)
- return CryptoUtil.loadRsaPrivateKey(bytes)
+ return CryptoUtil.loadRSAPrivate(bytes)
}
}