Creating a Json Web Key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need to create a Jose JWK from the public part of a private key in a
PEVP_PKEY, with 1.1.0.  

I've done it using the old struct rsa_st from 1.0.2 and
EVP_PKEY_get1_RSA, and then converting the n and e BIGNUMs to binary
(and then to Base64Url).  

This still works in 1.1.0 although rsa_st has more stuff after n and e,
but obviously is not ideal.  I've not yet found any helpers for getting
n and e any other way.  

Is there a better way to build a JWK? 

Now need to handle elliptic curve keys as well. 

Angus


 

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux