Comments (6)
Of course the password is correct.
from ghostunnel.
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.
(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.
(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.
from ghostunnel.
Back to use Openssl generate keypair can successfully connected,but use keytools generate keystore cant read pass.How?
from ghostunnel.
Solved: Do not use keytool generate the keypair,use Openssl with SAN do it!
from ghostunnel.
Related Issues (20)
- Open Policy Agent support? HOT 7
- Support for OPA policies hot-reload and re-authorizing existing connections HOT 5
- CVE-2022-37434 HOT 6
- Help not show how to set cert HOT 1
- GLIBC too old HOT 7
- Can't build HOT 2
- x/text dependendy should be updated to latest version for CVE-2022-32149 HOT 4
- PKCS11 tokens that don't support RSA-PSS don't work. We should make sure the mechanism is supported or handle the error HOT 3
- Windows binary .exe extension is missing HOT 1
- Add linux arm64 binaries in the official releases ? HOT 2
- Trying to use ghostunnel in client mode only to connect directly to a mysql server. Is this even possible? HOT 1
- Any plans to support DTLS? HOT 2
- Release 1.7.2 is missing binary ghostunnel-linux-amd64 HOT 2
- Getting the error while running in windows. for workload api (spiffe/error: Failed to watch the Workload API : rpc error: code = Unavailable desc = connection error: desc = "transport: Erro r while dialing: open \\.\pipe\backend-agent\public\api: The system cannot find the file specified.") HOT 3
- Workload API is not working in Windows. HOT 1
- spire for cert, no client validation fails HOT 7
- failed to build resolver: invalid (non-empty) authority
- [ documentation ] Comparision section HOT 1
- Why only support http/https, Why not support four layer proxies? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghostunnel.