Re: How to convert ed25519 private key from der to pem?

2019-11-04 Thread Glen Huang
NVM, just found out it was asked sometime ago: https://www.mail-archive.com/openssl-users@openssl.org/msg86720.html > On Nov 5, 2019, at 2:52 PM, Glen Huang wrote: > > To convert RSA private key from der to pem, I can use the rsa subcommand, but > there is no ed25519, and ec doesn’t seem to wo

How to convert ed25519 private key from der to pem?

2019-11-04 Thread Glen Huang
To convert RSA private key from der to pem, I can use the rsa subcommand, but there is no ed25519, and ec doesn’t seem to work for ed25519. I wonder if it’s possible to convert ed25519 private key from der to pem with openssl? What’s the proper way?

compile error with tracing on in CMP code

2019-11-04 Thread Stephen Farrell
Hiya, I just cloned from the tip and after: $ ./config enable-ssl-trace enable-trace --debug I get a compile error (see below). I didn't see an immediately obvious fix, but (for me) just setting "-no-cmp" in addition to the above seems to work fine, so I've stopped delving into it for now. Che

Help on Diffie Hellman key exchange

2019-11-04 Thread Jason Qian via openssl-users
Hi We have an application that does the Diffie Hellman key exchange (OpenSSL/1.1.0f). It works fine, but under heavy loaded conditions, sometimes an invalide secret been generated and other side couldn't decrypt the data (the secret seems offset by one). The client side is c++ and the se

Re: Force the use of engine in config file

2019-11-04 Thread Frederick Gotham
> Okay first I'll show the changes that I've made to the source code and > build setup for "libopenssl". I added one more change, I added to the beginning of the function "OPENSSL_init_crypto" these two lines: opts &= ~(uint64_t)OPENSSL_INIT_NO_LOAD_CONFIG; opts |= OPENSSL_IN

RE: static linking libssl and libcrypto

2019-11-04 Thread Floodeenjr, Thomas
To check if you are linked statically or dynamically, what does ldd tell you? (ldd libAPP.so) Your library should not have a dependency on libssl.so or libcrypto.so if you are linked statically. -Tom From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of Aijaz Baig Sent: S

Re: Force the use of engine in config file

2019-11-04 Thread Frederick Gotham
Okay first I'll show the changes that I've made to the source code and build setup for "libopenssl". I have added two compiler flags: OPENSSL_NO_RDRAND, OPENSSL_LOAD_CONFIG Not that the following compiler flag is NOT set: OPENSSL_NO_AUTOLOAD_CONFIG And here are the source code changes: (1)

Re: static linking libssl and libcrypto

2019-11-04 Thread Brice André
Hello, It's not an open-ssl issue, but more a compiler specific one. With info you provided, I cannot tell you what you get as results, but two points that may help: 1. regarding the 87 ssl symbols : when you link with a library, only the useful symbols are imported. So, if the code in you