Configtest comes back OK but when I run I get this error:
Could not initialize SSL context {:exception=>#<OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key:> :backtrace=>["org/jruby/ext/openssl/PKeyRSA.java:277:in 'initialize'", etc.
Hi Nick, thanks for responding. I'm kind of new at this certificate business but I did have help from a local guru who's set up multiple java systems. There were a series of events leading up to the .pem file:
using java keytool, created a .jks
using java keytool, imported certificate authorities into .jks
using java keytool, created and submitted a certificate request .csr
received certificate .cer and imported it using java keytool into .jks
using java keytool, exported .jks to .p12
using openssl, I exported .p12 to .pem. So the .pem includes my server's private key and certificates for my server and CAs.
using notepad, I copied private key text from .pem to mykey.key.
using notepad, I copied certificate text to mycert.crt
I tried setting in the tcp input configuration's "ssl_key" option both the .pem with it's multiple components and the mykey.key. On a whim I tried renaming mykey.key to mykey.pem and tried it. In all cases I received the error "Neither PUB key nor PRIV key" on logstash startup.
In the example above I listed mykey.pem because that's what was used on https://groups.google.com/forum/#!topic/logstash-users/PcR0it4wiK0. It gave me the "Neither PUB key nor PRIV key" so I started trying other things, one of which was the private encrypted key from the pem file saved as mykey.key. It gave me the same error.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.