Fulltext results:
- Debug Server Certificate from Client
- .sh/|langui.sh]]. openssl s_client -showcerts -connect www.andunix.net:443 Informations about the ... p://www.openssl.org/docs/apps/s_client.html#item__connect|-connect www.andunix.net:443]]'': This specifies the host and optional port to connect to. If not specified then an attempt is made
- Download a Server Certificate
- st, load the certificate chain from the server: <code bash> openssl s_client -showcerts -connect www.example.org:443 </dev/null </code> This will output the whole server certificate chain. Eve... te is the server certificate. So you only need to copy the output from the first ''-----BEGIN CERTIFIC
- Convert a Key
- ====== Convert a Key ====== ===== Convert P12 to Java Keystore ===== keytool -importkeystore -srckeystore t... ststorepass PASSWORD'' to set the password on the command line. If you don't, keytool will ask you for a password. ===== Convert PEM to P12 ===== To convert ''cert.pem'' an
- Generate a Test Key
- to the certificate (if any) are specified in the configuration file. Unless specified using the set_s... specified, the default key size, specified in the configuration file is used. * ''[[http://www.opens... is not specified then the filename present in the configuration file is used. * ''[[http://www.opens... default. Now you can pack the key into a PKCS#12 container: openssl pkcs12 -export -out testkey.p1
- Compare a Key with its Certificate
- ====== Compare a Key with its Certificate ====== Credit for this example goes to "[[https://kb.wisc.e... xponent is quite always 65537. So we only need to compare the modulus. openssl x509 -noout -modulus... 87CC873703FC3932640354D63 </file> It's easier to compare them if you calculate a MD5 sum: openssl
- Convert a Certificate
- ====== Convert a Certificate ====== ===== Convert DER to PEM ===== openssl x509 -inform der -in testkey.der -out testkey.pem ===== Convert PEM to DER ===== openssl x509 -outform de
- Print Information about a Signature
- ==== Print Information about a Signature ====== <code bash> openssl pkcs7 -in signature.p7s -text -inform DER -print_certs -noout </code> {{tag> cryptography, howto, openssl, security
- Print all certificates in a file
- === Print all certificates in a file ====== This command is especially helpful if you want to use Tom... nt_certs]]'': prints out any certificates or CRLs contained in the file. They are preceded by their su
- Print Information about a Key
- ]'': This specifies the input format normally the command will expect an X509 certificate but this can