I have information about n,p,q where n=pq and p and q are large prime numbers to be used for the RSA algorithm. For example:
n: C053094BFABF26D431CF33E028770DBB15F4AE76820B5150181F1BF42C5CF3AA7BDB459ACA77D610497F94FFA017BC07EF030E3D3450CAE7E706F352B7D7575CA6B89A5B3C953028E562F7F698C97FDD490EDF4788F073362C743B70AF2C61A17FA495E5801CC8EA1A732C9E8985DB4E8A22EAB97407806F8D7CDDF0BF3CD9F3
e: 10001
p: D9CC00CD811FB052A0EF27332597DA89AAA6B042A1A01A8944229EE680C964148BB07AFBD2EBE467CC9B28E41B5897132F9AFDCD7C5B794CD37E3245A0BC18F5
q: E20F35A3B49B49A35DE25E285EE9B2DC5F3B5FDDD281892F4BE3C54768CBE09272667FF137C5ED9CADD42FF18A8B08FFA9A82C0CF26169B0940F60BEF2AD7647
I want to generate a PEM private and public key from that values.
I guess they are on hexadecimal format, but I really don't know which is contained in a key in pem format. I know that PEM just means that the key is base64 with some other additions footers (begin public etc.).
Any suggestions or any example code?
I mean my goal is from that value obtain two file in PEM private and public keys to be passed to openssl for example.
Many thanks, Andrea