Advertisement
Fhernd

certificados.txt

Apr 28th, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Servidor Certificado:
  2. keytool -genkey -alias localhost -keyalg RSA -keystore /opt/CAS/certs/server.keystore
  3. openssl genrsa -out ca.key 1024
  4. openssl req -new -key ca.key -out ca.csr
  5. openssl x509 -req -days 1095 -in ca.csr -signkey ca.key -out ca.crt
  6. keytool -import -keystore cacerts.jks -storepass dianacas -alias server -file ca.crt
  7.  
  8. Cliente certificado:
  9. keytool -genkey -alias localhost -keyalg RSA -keystore /opt/APP/certs/server.keystore
  10. openssl genrsa -out ca.key 1024
  11. openssl req -new -key ca.key -out ca.csr
  12. openssl x509 -req -days 1095 -in ca.csr -signkey ca.key -out ca.crt
  13. keytool -import -keystore cacerts.jks -storepass dianacas -alias client -file ca.crt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement