GithubHelp home page GithubHelp logo

Comments (6)

Handsome1080P avatar Handsome1080P commented on May 27, 2024

Of course the password is correct.
image.png

from ghostunnel.

Handsome1080P avatar Handsome1080P commented on May 27, 2024

keytool -genkey
-alias server
-keyalg RSA
-validity 3650
-storetype PKCS12
-storepass 634218
-keystore server.p12
-dname "xxxxx"
-ext "SAN=DNS:xxx,EMAIL:xxx"

keytool -genkey
-alias client
-keyalg RSA
-validity 3650
-storetype PKCS12
-storepass 634218
-keystore client.p12
-keysize 2048
-dname "xx"
-ext "SAN=DNS:xxx,EMAIL:xxx"

keytool -export
-file server.cert
-keystore server.p12
-storepass 634218
-alias server

keytool -export
-file client.cert
-keystore client.p12
-storepass 634218
-alias client

keytool -import
-file client.cert
-keystore server.p12
-storepass 634218
-alias client-public

keytool -import
-file server.cert
-keystore client.p12
-storepass 634218
-alias server-public

openssl pkcs12 -in server.p12 -nodes -nocerts -out serverkey.pem

openssl pkcs12 -in server.p12 -nokeys -out servercert.pem

openssl pkcs12 -in client.p12 -nodes -nocerts -out clientkey.pem

openssl pkcs12 -in client.p12 -nokeys -out clientcert.pem

from ghostunnel.

csstaub avatar csstaub commented on May 27, 2024

(1) Could you please provide an example file or more concrete steps to reproduce? Otherwise there's not enough information for me to debug this issue. The command you posted doesn't work for me to replicate the issue.
(2) Can you tell me exactly what versions of Ghostunnel, Keytool, etc. you're using?
(3) Have you verified that your generated keystore is actually valid and works with other software?

from ghostunnel.

Handsome1080P avatar Handsome1080P commented on May 27, 2024

(1) Could you please provide an example file or more concrete steps to reproduce? Otherwise there's not enough information for me to debug this issue. The command you posted doesn't work for me to replicate the issue. (2) Can you tell me exactly what versions of Ghostunnel, Keytool, etc. you're using? (3) Have you verified that your generated keystore is actually valid and works with other software?
Steps above.
image.png
image.png

from ghostunnel.

Handsome1080P avatar Handsome1080P commented on May 27, 2024

Back to use Openssl generate keypair can successfully connected,but use keytools generate keystore cant read pass.How?

from ghostunnel.

Handsome1080P avatar Handsome1080P commented on May 27, 2024

Solved: Do not use keytool generate the keypair,use Openssl with SAN do it!

from ghostunnel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.