How to find the alias for a keystore entry using KeyStore Explorer program? - alias

I have the file open in the program, but I don't understand where the Alias is or what it is called in the program.

The alias is just the name of the keystore entry:

Related

Weblogic 12.2.1.3 standard demo certificate - location

What is the default demo certificate used by Weblogc 12.2.1.3 and where is it stored?
Under <Oracle_Home>\wlserver\server\lib there are cacerts and DemoTrust.jks
On <adf_domain>\security\ there is no DemoIdentity.jks
So I believe Weblogic is using it's own demo certificate for AdminServer and NodeManager stored in DemoTrust.jks?
While checking keystore using:
keytool -list -v -keystore <Oracle_Home>\wlserver\server\lib\DemoTrust.jks
there are 2 entries: alias wlscertgencab and alias wlscertgenca
Under Weblogic admin console => domain - configuration - SSL there is Private Key Alias: DemoIdentity and Private Key Location: from Demo Identity Kestore
I would like to know where is the default weblogic demo certificate stored, what is his alias, and how does Admin Server and NodeManager knows which certificate to use(in nodemanager.properties I don't see any certificates/keystores entry)?
Thx a lot
The demo certificate is stored in the DemoIdentity.jks file. This file is located under the security folder of your domain, not in the WebLogic Server installation.
The alias is demoidentity
The default keystore pass phrase is DemoIdentityKeyStorePassPhrase (you will need it with keytool)

How to Solve Unable to export or encryt the private key For Google App Signing

I have an apk. I am trying to upload the new apk in publish console.As per the google rules we have to app signing. I have choose
export and upload a key from a Java keystore and i have download the pepk tool and then i have copied the below command
java -jar pepk.jar --keystore=foo.keystore --alias=foo --output=F:\Java\bin --encryptionkey=eb10fe8f7c7c9df715022017b00c6471f15022017b00c64715022017b00c647f4ba4fe93fc8cef
Note: the encryption key is i have typed manually. For Security purpose i did not posted it.
When i run the above command in command prompt. It asks for keystore password. I have entered the keystore password. after it asks for alias password. I did not set any alias password. If i did not enter anything and then i click enter itsef. It says error.
Error: Unable to export or encrypt the private key...
how to solve this error.
You need find out the alias from keystore file.
keytool -list -v -keystore keystore.jks
remember the
keystore.jks file where it is actually located (path).
If you run the above command in the console. show you the output like that.
Now you have the alias from certificate and you can then run the above command easily. I hope this will help you out.
Regards,

ColdFusion CFHTTP and SSL Certs

Background: I have an ongoing problem with a Connection Failure error message when I try connecting to an API using CFHTTP. While reviewing the API in SoapUI I noticed there was a button SSL Info (3 certs) which is outlined below. When I click the button a window of copy pops up with the headlines outlined below.
"SSL Info (3 certs)"
CipherSuite:
PeerPrincipal
Peer Certificate 1:
Peer Certificate 2:
Peer Certificate 3:
I have a feeling these are the key to getting my application to connect and pull the JSON correctly.
Question: How or Where do I install this cert information. Should I copy all 310 lines in the window with the cert information and place it in new file and save it somewhere?
Any info would be great.
I have answered the question of installing certificates before. Here are the steps again to save you from searching...
If you are using cfhttp to connect via SSL (https) then the ColdFusion server definitely needs the certificate installed to successfully connect. Here is a previous answer that I gave on a similar issue:
Here are the steps you need to perform in order to install the certificate to the Java keystore for ColdFusion. First, be sure you are updating the correct cacerts file that ColdFusion is using. In case you have more than one JRE installed on that server. You can verify the JRE ColdFusion is using from the administrator under the 'System Information'. Look for the Java Home line.
The default truststore is the JRE's cacerts file. This file is typically located in the following places:
Server Configuration:
cf_root/runtime/jre/lib/security/cacerts
Multiserver/J2EE on JRun 4 Configuration:
jrun_root/jre/lib/security/cacerts
Sun JDK installation:
jdk_root/jre/lib/security/cacerts
Consult documentation for other J2EE application servers and JVMs
In order to install the certificate you need to first get a copy of the certificate. This can be done by using Internet Explorer. Note that different versions of Internet Explorer will behave slightly differently but should be very similar to these steps. For example, earlier versions of IE might save the certificate under a different tab than I mention.
Browse to the SSL URL in Internet Explorer - https://xyz/infoLookup.php?wsdl.
View the certificate by clicking on the lock icon and clicking view certificate
Then click the Install Certificate... button (note: if you do not see this button you must close IE and run it as administrator first)
Click on IE's Internet Options and click the Content tab
Click the Certificates button
Find the server's certificate under the Intermediate Certification Authorities tab, select the cert and click the Export... button
Export using DER format
Copy the exported certificate file to your ColdFusion server (you can delete the cert from IE if you want)
Run cmd prompt as administrator on the ColdFusion server
Make a backup of the original cacerts file in case you run into issues
The keytool is part of the Java SDK and can be found in the following places:
Server Configuration:
cf_root/runtime/bin/keytool
Multiserver/J2EE on JRun 4 Configuration:
jrun_root/jre/bin/keytool
Sun JDK installation:
jdk_root/bin/keytool
Consult documentation for other J2EE application servers and JVMs
To install the cert:
Change directory to your truststore's location (where the cacerts file is located)
Type this command (use current jvm and use current jvm's keytool) "c:\program files\java\jre7\bin\keytool" -import -v -alias your_cert_alias_name -file C:\wherever_you_saved_the_file\cert_file.cer -keystore cacerts -storepass changeit
Type yes at the prompt to "Trust this certificate?"
Note: your_cert_alias_name I used above can be whatever you want
Note: C:\wherever_you_saved_the_file\cert_file.cer change these values to whatever you use for the server folder and certificate file name
To verify the cert:
Type this command (use current jvm and use current jvm's keytool) "c:\program files\java\jre7\bin\keytool" -list -v -keystore cacerts -alias your_cert_alias_name -storepass changeit
Note: your_cert_alias_name use the same name here that you used above to install the cert
Restart the ColdFusion service It will not read the updated cacerts file until you do this.
You can delete the imported certificate file from the server if you wish.

SSL certificate imported on Glassfish Server, but the browser is showong error for https URL

I have followed these two sites for SSL setup on my glassfish server.
https://javadude.wordpress.com/2010/04/06/getting-started-with-glassfish-v3-and-ssl/
and
https://docs.oracle.com/cd/E19776-01/820-4495/ghlgv/index.html
Https with default s1as was working fine. Then I followed these steps
Deleted existing s1as from keystore.jks and cacerts.jks.
Generated alias (tried SOME_OTHER_ALIAS or, s1as)
Exported it
Imported it to truststore cacerts.jks
Restarted the server.
Then typed the URL in browser. https://localhost:8181/HelloWorld
I got a blank page saying "This webpage is not available", "ERR_CONNECTION_CLOSED".
Checked server.log file inside C:\Program Files\glassfish3\glassfish\domains\domain1\logs. But, no error was there.
System details are as follows,
Glassfish Version: Glassfish3.1.2-Windows
Master Password of Glassfish: changeit
Keypass: changeit
Storepass: changeit
Please help me out. Thanks in advance.
Unknowingly, I was putting some random name for the First and Last Name (CN) of SSL key. It must be the the domain name or IP address of the server.

cannot start node manager

When I try to start node manager I am getting below error. I am getting this error on remote machine. By the way node manager is running on my local machine without any problem. Both machines have same configuration. Is there any idea?
<SEVERE> <Fatal error in node manager server>
weblogic.nodemanager.common.ConfigException: Unknown key store identity alias or not a key entry alias: DemoIdentity
at weblogic.nodemanager.server.SSLConfig.loadKeyStoreConfig(SSLConfig.java:175)
at weblogic.nodemanager.server.SSLConfig.<init>(SSLConfig.java:100)
at weblogic.nodemanager.server.NMServer.init(NMServer.java:185)
at weblogic.nodemanager.server.NMServer.<init>(NMServer.java:147)
at weblogic.nodemanager.server.NMServer.main(NMServer.java:353)
at weblogic.NodeManager.main(NodeManager.java:31)
You'll want to go look at the wlserver_10.3/common/nodemanager/nodemanager.properties file.
It sounds like your domain isn't set up to use a custom trust store or key store so it defaults to using the "Demo" identity.
In that properties file, verify that
ListenPort=5556
SecureListener=false
You may also want to login to your admin console and verify that all of the settings here are correct:
Environments->Machines-> <your machine name> -> Configuration-> NodeManager
You may want to use Plain instead of SSL.
If you do want to use SSL, I would recommend checking out a tutorial like the following:
http://jvzoggel.wordpress.com/2011/12/16/configuring-ssl-for-oracle-weblogic-and-ofmw/
Old Question. For future users.
It could not able to find the alias in the keystore specified.
Unknown key store identity alias or not a key entry alias: DemoIdentity.
In the nodemanager.properties check the following lines
CustomIdentityKeyStoreFileName=<path_file>/kesytore.jks
CustomIdentityAlias=<AliasName>
I hope you have given as DemoIdentity and it couldnt find the alias in the keystore.jks file.
Make sure you have given correct alias or correct jks file .
To know the list of alias in the jks file
keytool -list -keystore <path_file>/kesytore.jks