I'm creating JWT parser and now I need to create public key. I made it in Kotlin. But now I have to create same parser in Python. But I got stuck in creating X.509 certificate in python. I tried with cryptography
library but with no success. Code in Kotlin. Thanks for responses.
val factory = KeyFactory.getInstance("EC")
val publicSpec = X509EncodedKeySpec(Base64.getMimeDecoder().decode(key))
return factory.generatePublic(publicSpec)