I'm trying to generate a self-signed certificate in order to sign some source code. I use:
keytool -genkey -storepass mypass -alias lorenzos -keystore nbproject/private/keystore
Then I fill in personal data, but every time I confirm them, it asks me personal information again and again:
Specificare nome e cognome
[Unknown]: Lorenzo Stanco
Specificare il nome dell'unità aziendale
[Unknown]: N/A
Specificare il nome dell'azienda
[Unknown]: N/A
Specificare la località
[Unknown]: Modena, Italy
Specificare la provincia
[Unknown]: MO
Specificare il codice a due lettere del paese in cui si trova l'unità
[Unknown]: IT
Il dato CN=Lorenzo Stanco, OU=N/A, O=N/A, L="Modena, Italy", ST=MO, C=IT è corretto?
[no]: yes
Specificare nome e cognome
[Lorenzo Stanco]:
[...]
I've tried also using None instead of N/A. I've got the same problem on my Ubuntu machine and on my Cygwin terminal in Windows.
Am I doing it wrong?
keytool -genkeypair -dname "cn=Mark Jones, ou=JavaSoft, o=Sun, c=US" -alias business -keypass kpi135 -keystore working/mykeystore -storepass ab987c -validity 180work? or even justkeytool -genkeypair? – soandos Feb 6 at 20:00