Skip to content

Instantly share code, notes, and snippets.

Avatar

Clean Tutorials cleantutorials

View GitHub Profile
@cleantutorials
cleantutorials / jconsole-import-cert-client.txt
Created May 19, 2020
Copy the server certificate to the Client machine
View jconsole-import-cert-client.txt
B:\JMX Client\Security>keytool -importcert -file server.cer -keystore clienttruststore -storepass clienttrustpass
Owner: CN=JMX Agent, OU=DevOps, O=CleanTutorials, L=Delhi, ST=Delhi, C=IN
Issuer: CN=JMX Agent, OU=DevOps, O=CleanTutorials, L=Delhi, ST=Delhi, C=IN
Serial number: 2eef3295
Valid from: Tue Sep 05 05:24:54 IST 2017 until: Sun Mar 04 05:24:54 IST 2018
Certificate fingerprints:
MD5: AF:B2:FC:3D:CF:B0:CB:74:27:80:C3:2B:93:FD:54:EE
SHA1: 1B:54:E7:CB:9E:A4:FD:E3:80:91:7B:BA:15:7F:96:BE:42:B8:1D:DE
SHA256: C7:38:37:FD:56:7F:DB:5F:79:72:22:5C:38:30:10:5B:BC:A3:E3:62:FC:BA:E3:4C:F0:0D:2C:D8:DD:8E:D2:17
Signature algorithm name: SHA1withDSA
@cleantutorials
cleantutorials / jconsole-import-cert-server.txt
Created May 19, 2020
Copy the client certificate to the Server machine and import it in Server's TrusStore
View jconsole-import-cert-server.txt
B:\JMX\Security>keytool -importcert -file client.cer -keystore servertruststore -storepass servertrustpass
Owner: CN=JConsole, OU=DevOps, O=CleanTutorials, L=Delhi, ST=Delhi, C=IN
Issuer: CN=JConsole, OU=DevOps, O=CleanTutorials, L=Delhi, ST=Delhi, C=IN
Serial number: 427e283a
Valid from: Tue Sep 05 05:58:57 IST 2017 until: Sun Mar 04 05:58:57 IST 2018
Certificate fingerprints:
MD5: F0:D9:B2:55:F8:8C:00:88:E5:2D:2C:DD:89:55:79:38
SHA1: 8D:3E:10:A0:E8:AE:F8:0D:89:CE:6D:2F:78:9B:A6:79:B1:5E:94:F4
SHA256: 4A:1B:DB:C6:4D:45:46:A1:C5:4E:4F:FD:2C:40:5B:AF:4B:8B:69:47:63:FF:D0:2F:20:06:FB:A0:70:7E:51:E3
Signature algorithm name: SHA1withDSA
@cleantutorials
cleantutorials / jconsole-generate-certificate-client.txt
Created May 19, 2020
Generate the Certificate from the Client's Keystore
View jconsole-generate-certificate-client.txt
B:\JMX Client\Security>keytool -exportcert -keystore clientkeystore -alias clientkey -storepass clientpass -file client.cer
Certificate stored in file <client.cer>
@cleantutorials
cleantutorials / jconsole-generate-keypair-client.txt
Created May 19, 2020
Generate key pair on Client or the Remote machine
View jconsole-generate-keypair-client.txt
B:\JMX Client\Security>keytool -genkeypair -keystore clientkeystore -alias clientkey -validity 180 -storepass clientpass -keypass clientpass
What is your first and last name?
[Unknown]: JConsole
What is the name of your organizational unit?
[Unknown]: DevOps
What is the name of your organization?
[Unknown]: CleanTutorials
What is the name of your City or Locality?
[Unknown]: Delhi
What is the name of your State or Province?
@cleantutorials
cleantutorials / jconsole-generate-certificate-server.txt
Created May 19, 2020
Generate the Certificate from the Server's KeyStore
View jconsole-generate-certificate-server.txt
B:\JMX\Security>keytool -exportcert -keystore serverkeystore -alias serverkey -storepass serverpass -file server.cer
Certificate stored in file <server.cer>
@cleantutorials
cleantutorials / jconsole-generate-keypair-server.txt
Created May 19, 2020
Generate key pair on Server or the Host machine
View jconsole-generate-keypair-server.txt
B:\JMX\Security>keytool -genkeypair -keystore serverkeystore -alias serverkey -validity 180 -storepass serverpass -keypass serverpass
What is your first and last name?
[Unknown]: JMX Agent
What is the name of your organizational unit?
[Unknown]: DevOps
What is the name of your organization?
[Unknown]: CleanTutorials
What is the name of your City or Locality?
[Unknown]: Delhi
What is the name of your State or Province?