To renew the certificate that was generated by Let's Encrypt:
1# Go to sslzero.com site
2# Use the same Let's Encrypt Key generated by the site when certificate was originated
3# Get the CSR
4# That's it
Showing posts with label ssl. Show all posts
Showing posts with label ssl. Show all posts
Sunday, December 31, 2017
Wednesday, August 16, 2017
Let's Encrypt and Sophos XG Firewall
I am publishing my web server behind the Sophos XG firewall. I need SSL certificate that is free and trusted by most of internet browsers. The answer is Let's Encrypt.
I use this site to help integrate with Let's Encrypt : http://zerossl.com
Steps
#1 Generate CSR from the XG firewall and download the CSR and the private key
#2 Navigate to zerossl.com and paste the CSR content
#3 Follow the instruction to validate your domain - I did DNS option by inserting TXT value
#4 Once validation is successful, the signed public key is ready to be downloaded
#5 Upload the signed key to XG firewall along with the private key that was downloaded on step #1
#6 (optional) if XG firewall does not trust Let's Encrypt CA, add this to the Trusted CA
Done!!
I use this site to help integrate with Let's Encrypt : http://zerossl.com
Steps
#1 Generate CSR from the XG firewall and download the CSR and the private key
#2 Navigate to zerossl.com and paste the CSR content
#3 Follow the instruction to validate your domain - I did DNS option by inserting TXT value
#4 Once validation is successful, the signed public key is ready to be downloaded
#5 Upload the signed key to XG firewall along with the private key that was downloaded on step #1
#6 (optional) if XG firewall does not trust Let's Encrypt CA, add this to the Trusted CA
Done!!
Saturday, September 27, 2014
SSL Certificate Binding to Process
SSL certificate is usually used in Web Server, IIS for example. Obviously binding an SSL certificate to IIS site is a very straightforward task.
Using IIS Manager, you go to the site
Sometime you need to bind SSL certificate to a process or an application. If the application has got an interface or GUI to bind to an SSL certificate, great!. If not, then you need to follow the process here:
Get the application ID, by running WMI query:
wmic product list
This query produces a list of application name, its identifying number and install location
Get the application identifier number (highlighted)
The next step is to get the SSL certificate hash/thumbprint. To get this you can either run:
netsh http show sslcert
or
Get it from the certificate itself
Using IIS Manager, you go to the site
Edit Site Bindings...
Select the https (443)
The select the certificate from the list
Sometime you need to bind SSL certificate to a process or an application. If the application has got an interface or GUI to bind to an SSL certificate, great!. If not, then you need to follow the process here:
Get the application ID, by running WMI query:
wmic product list
This query produces a list of application name, its identifying number and install location
Get the application identifier number (highlighted)
The next step is to get the SSL certificate hash/thumbprint. To get this you can either run:
netsh http show sslcert
or
Get it from the certificate itself
Finally you can bind it using the following command:
netsh http add sslcert ipport=<ip address>:<port> certhash=<cert thumbprint> appid={<app id>}
Tuesday, April 30, 2013
Blackberry Device Service 10 SSL Certificate
After you install your brand new Blackberry 10 server (Blackberry Device Service 10), you might want to replace the default self-signed SSL certificate. I do, because I think this what caused my Blackberry Management Studio not talking properly with the BAS 10, e.g. I have got bad_certificate error on the log file.
So, in summary you need to do the followings:
keytool -import -alias intermediateca -keystore "C:\Program Files (x86)\Research In Motion\BlackBerry Device Service\bas\bin\web.keystore" -file "C:\Temp\issuingca.cer"
So, in summary you need to do the followings:
- Backup BAS keystore
- Delete the default alias from keystore
- Generate a new key in keystore
- Generate CSR
- Submit CSR to your CA
- Import CA(s)
- Import public key for your SSL certificate
Now, I am using Microsoft CA to generate the SSL certificate and my BAS 10 is running on Windows 2008 R2 (x64). All the commands below is using keytool.exe which is located in your JAVA JRE\bin folder.
You need either reset your web keystore password or get the current password from BES10 console- Servers and components - Blackberry Solution Topology - Blackberry Domain - Component View - Blackberry Administration Service. Under Security settings, there is a Default password to encrypt the web.keystore file
Backup BAS keystore
Just take a copy of the following file:
C:\Program Files (x86)\Research In Motion\BlackBerry Device Service\bas\bin\web.keystore
Delete the default alias from keystore
This will delete the key pair with an alias of httpssl - which is being used by BAS 10
keytool -delete -alias httpssl -keystore "C:\Program Files (x86)\Research In Motion\BlackBerry Device Service\bas\bin\web.keystore"
This will ask for the keystore password - enter it
Generate aa New Key in Keystore
Replace the -dname with your own value. CN is the FQDN of the SSL to be used
keytool -genkey -alias httpssl -keystore "C:\Program Files (x86)\Research In Motion\BlackBerry Device Service\bas\bin\web.keystore" -dname "CN=bes.domain.local, OU=IT, O=Laurence Blog, L=Sydney, ST=NSW, C=AU" -keyalg RSA -keysize 2048
Generate CSR
This generates a certreq.csr file which will be used for the next step
keytool -certreq -alias httpssl -keystore "C:\Program Files (x86)\Research In Motion\BlackBerry Device Service\bas\bin\web.keystore" -file "C:\Temp\certreq.csr" -keyalg RSA -keysize 2048
Submit CSR to your CA
Navigate to your CA using IE browser: https://caserver.domain.local/certsrv
Navigate to Request a certificate
Navigate to Submit a certificate request by using a base-64-encoded CMC or ...
Paste the content of the CSR file to the Saved Request field
Use the default: Web Server template
Submit
Download the certificate
Download all the Root and issuing/intermediate CA as well
Import CA(s)
Import all the CA you have (e.g. root/issuing/intermediate). Make sure you are using a unique alias name for each CA
keytool -import -alias rootca -keystore "C:\Program Files (x86)\Research In Motion\BlackBerry Device Service\bas\bin\web.keystore" -file "C:\Temp\rootca.cer"
keytool -import -alias intermediateca -keystore "C:\Program Files (x86)\Research In Motion\BlackBerry Device Service\bas\bin\web.keystore" -file "C:\Temp\issuingca.cer"
Import Public Key for SSL Certificate
This imports the certificate from your CA to the keystore
keytool -import -alias httpssl -keystore "C:\Program Files (x86)\Research In Motion\BlackBerry Device Service\bas\bin\web.keystore" -file "C:\Temp\public.cer"
Restart the Blackberry Administration Service - Native Code Container
You can also do the same thing for the Blackberry Management Studio (*Fusion) using the same steps above
.
The keystore location is:
C:\Program Files (x86)\Research In Motion\BlackBerry Management Studio\BlackBerryMobileFusion.keystore
The keypair name is: fusionssl
Labels:
bas,
bas 10,
bes,
bes 10,
blackberry,
blackberry 10,
cerficate,
ssl
Monday, September 20, 2010
Import SSL Certificate to Citrix Netscaler
I use the following method to import SSL Certificate to Citrix Netscaler:
- Find any Windows 2003 with IIS installed. Generate a CSR from this machine
- Submit this CSR to your CA to get the private key of it
- Import this private key to your IIS again
- Export the certificate both public and private keys as a pfx file
- Import this .pfx file to the Netscaler, it will generate a new file
- Open this new file, it should have 2 sections, public and private sections
- Create 2 new files, one for the public and one for the private section
- Upload these 2 new files to the Netscaler (you can delete the .pfx and the generated file from Netscaler if you want to)
- From Netscaler, add a new SSL certificate
- Give a name to the new Certificate
- Select the public certificate for the Certificate File Name
- Select the private certificate for the Private File Name
- You can use the SSL certificate now with CAG







