Try using following command. I haven’t tried it but I think it should work.
openssl pkcs8 -topk8 -inform PEM -outform DER -in filename -out filename -nocrypt
Related Contents:
- Verify a certificate chain using openssl verify
- How to generate a self-signed SSL certificate using OpenSSL?
- Using openssl to get the certificate from a server
- How can I transform between the two styles of public key format, one “BEGIN RSA PUBLIC KEY”, the other is “BEGIN PUBLIC KEY”
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE [closed]
- Differences between “BEGIN RSA PRIVATE KEY” and “BEGIN PRIVATE KEY”
- Converting pfx to pem using openssl
- CMake not able to find OpenSSL library
- Use RSA private key to generate public key? [closed]
- Difference between openSSL rsautl and dgst
- Converting PKCS#12 certificate into PEM using OpenSSL
- Extract public/private key from PKCS12 file for later use in SSH-PK-Authentication
- git 2.20.1.windows.1 does not honor http.sslverify=false
- Programmatically Create X509 Certificate using OpenSSL
- How to determine SSL cert expiration date from a PEM encoded certificate?
- Using OpenSSL what does “unable to write ‘random state'” mean?
- How to extract public key using OpenSSL?
- How to generate an openSSL key using a passphrase from the command line?
- OpenSSL: unable to verify the first certificate for Experian URL
- How do I manage the error “OpenSSL v1.1.1 ssl_choose_client_version unsupported protocol”? [closed]
- How to convert an ECDSA key to PEM format
- Convert pem key to ssh-rsa format
- How to save public key from a certificate in .pem format
- Where is the PEM file format specified?
- How to install latest version of openssl Mac OS X El Capitan
- How can I deploy an iPhone application from Xcode to a real iPhone device?
- How to get APK signing signature?
- How can I create a self-signed certificate using C#?
- PKIX path building failed: unable to find valid certification path to requested target
- Server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
- Use OpenSSL RSA key with .Net
- Generate and Sign Certificate Request using pure .net Framework
- OPENSSL file_get_contents(): Failed to enable crypto
- How to determine which dependency causes Google Play OpenSSL warning?
- Xcode Command /usr/bin/codesign failed with exit code 1 : errSecInternalComponent
- Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)
- How to decode a string encoded with openssl aes-128-cbc using java?
- Building libcurl with SSL support on Windows
- “ImportError: No module named _ssl” with dev_appserver.py from Google App Engine
- Wrong version of keystore on android call
- How do I use a X509 certificate with PyCrypto?
- Obsolete cryptography warning from Browser
- “Invalid provider type specified” CryptographicException when trying to load private key of certificate
- OpenSSL DH Key Too Small Error
- Why do HTTPS requests produce SSL CERTIFICATE_VERIFY_FAILED error?
- Get timestamp from Authenticode Signed files in .NET
- Distribution certificate / private key not installed
- Use of Initialization Vector in openssl_encrypt
- iOS error “Embedded binary is not signed with the same certificate as the parent app”
- How to renew an iPhone development certificate?