<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://masspirates.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_install_a_new_HTTPS_Certificate</id>
	<title>How to install a new HTTPS Certificate - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://masspirates.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_install_a_new_HTTPS_Certificate"/>
	<link rel="alternate" type="text/html" href="https://masspirates.org/wiki/index.php?title=How_to_install_a_new_HTTPS_Certificate&amp;action=history"/>
	<updated>2026-05-09T17:34:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://masspirates.org/wiki/index.php?title=How_to_install_a_new_HTTPS_Certificate&amp;diff=2856&amp;oldid=prev</id>
		<title>Srevilak: Created page with &quot;Our certificate vendor delivers certificates via email.  The email message typically contains two certificates (in the body of the message).  # Our website certificate # The v...&quot;</title>
		<link rel="alternate" type="text/html" href="https://masspirates.org/wiki/index.php?title=How_to_install_a_new_HTTPS_Certificate&amp;diff=2856&amp;oldid=prev"/>
		<updated>2015-03-29T18:29:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Our certificate vendor delivers certificates via email.  The email message typically contains two certificates (in the body of the message).  # Our website certificate # The v...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Our certificate vendor delivers certificates via email.  The email&lt;br /&gt;
message typically contains two certificates (in the body of the&lt;br /&gt;
message).&lt;br /&gt;
&lt;br /&gt;
# Our website certificate&lt;br /&gt;
# The vendor's intermediate certificate&lt;br /&gt;
&lt;br /&gt;
Save the website certificate to a file like &amp;quot;masspirates.org.crt.YYYY&amp;quot;&lt;br /&gt;
(where YYYY is the year where the certificate was issued).  If that&lt;br /&gt;
file already exists on the server, use YYYYMMDD, or similar to make&lt;br /&gt;
the file name unique.&lt;br /&gt;
&lt;br /&gt;
Save the vendor's intermediate certificate to a file like&lt;br /&gt;
&amp;quot;masspirates.org.ca.YYYY&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Scp the files to our web server.  They go in the directory&lt;br /&gt;
~/masspirates.org/include/cert.&lt;br /&gt;
&lt;br /&gt;
It's a good idea to verify the new certificate before installing.&lt;br /&gt;
First, make sure that the new certificate's modulus matches the key&lt;br /&gt;
modulus.&lt;br /&gt;
&lt;br /&gt;
  $ openssl x509 -modulus -in masspirates.org.crt.2015 -noout | openssl md5&lt;br /&gt;
  (stdin)= d3b07384d113edec49eaa6238ad5ff00&lt;br /&gt;
&lt;br /&gt;
  $ openssl rsa -modulus -in masspirates.org.ssls.key -noout | openssl md5&lt;br /&gt;
  (stdin)= d3b07384d113edec49eaa6238ad5ff00&lt;br /&gt;
&lt;br /&gt;
Note that the two stdin lines match.  That means the private key and&lt;br /&gt;
certificate have the same modulus.  If the moduli don't match, then&lt;br /&gt;
you've got the wrong certificate, and it won't work.&lt;br /&gt;
&lt;br /&gt;
(Note: the md5 sums above are illustrative.  They're not the actual&lt;br /&gt;
values)&lt;br /&gt;
&lt;br /&gt;
Next, make sure the certificate file validates against the&lt;br /&gt;
intermediate CA.&lt;br /&gt;
&lt;br /&gt;
  $ openssl verify -CAfile masspirates.org.ca.2015 masspirates.org.crt.2015 &lt;br /&gt;
  masspirates.org.crt.2015: OK&lt;br /&gt;
&lt;br /&gt;
&amp;quot;OK&amp;quot; is the answer you want to see.&lt;br /&gt;
&lt;br /&gt;
Once you've done this, go into our hosting provider's control panel,&lt;br /&gt;
and edit the webserver configuration.&lt;br /&gt;
&lt;br /&gt;
* SSLCertificateFile should reference the new masspirates.org.crt.YYYY&lt;br /&gt;
* SSLCertificateChainFile should reference the new masspirates.org.ca.YYYY&lt;br /&gt;
&lt;br /&gt;
Save your changes, wait a few moments for the web server to reload.&lt;br /&gt;
Visit https://masspirates.org and verify it looks okay.  Also verify&lt;br /&gt;
that the certificate expiration date is what you expect it to be.&lt;br /&gt;
&lt;br /&gt;
Finally, go back to ~/masspirates.org/include/cert (on the web&lt;br /&gt;
server).  Move the old certificates into the &amp;quot;OLD&amp;quot; directory.&lt;/div&gt;</summary>
		<author><name>Srevilak</name></author>
	</entry>
</feed>