Bryan Saunders A Tech Blog
RTI DDS Resources
References
- Product Overview: http://www.rti.com/products/dds/
- Data Sheet: http://www.rti.com/docs/RTI_DDS.pdf
- Downloads:
- RTI Trial: http://www.rti.com/downloads/connext-files.html
- RTI DDS Shapes Demo: http://www.rti.com/downloads/get-shapes-demo.html
- References:
- Best Practices Whitepaper: http://www.rti.com/docs/DDS_Best_Practices_WP.pdf
- Getting Started Guide: http://www.rti.com/eval/rtidds45f/RTI_Connext_Messaging_GettingStarted.pdf
- Java API: http://community.rti.com/docs/html/api_java/main.html
- User Manual: http://community.rti.com/rti-doc/45f/ndds.4.5f/doc/pdf/RTI_Connext_UsersManual.pdf
- Additional Resources:
- Getting Started with DDS Presentation: http://www.slideshare.net/Angelo.Corsaro/intro-javacxx
- Sample C++ & Java Code
- Getting Started With DDS Video Presentations: http://www.youtube.com/playlist?list=PL7577F131DD659C27
- Introduction and Code Walkthroughs
- datadistrib4j: http://code.google.com/p/datadistrib4j/
- Experimental Java API for DDS, Open Source
- IDL Related Resources
- Java IDL Documentation: http://docs.oracle.com/javase/1.4.2/docs/guide/idl/index.html
- Getting Started with Java IDL: http://docs.oracle.com/javase/1.4.2/docs/guide/idl/GShome.html
- IDL to Java Mappings: http://docs.oracle.com/javase/1.4.2/docs/guide/idl/mapping/jidlMapping.html
- IDL Syntax and Semantics: http://www.ing.iac.es/~docs/external/corba/idl-spec.pdf
- IDL Specification: http://www.omg.org/technology/documents/idl2x_spec_catalog.htm
- IDL to Java Compiler: http://docs.oracle.com/javase/1.4.2/docs/guide/rmi-iiop/toJavaPortableUG.html
- Java RMI Compiler: http://docs.oracle.com/javase/1.4.2/docs/tooldocs/solaris/rmic.html
- Can generate IDL from a Java Class
- IDL/WSDL Interworking Specification: http://www.omg.org/spec/C2WSDL/1.2.1/PDF/
Installation Instructions
- Apply for Trial License or Obtain License Key
- Download RTI DDS for RHEL (Be sure to get the correct platform)
- CD to Directory where File was Downloaded
- Execute:
chmod 777 RTI_Connext_Messaging-4.5f-RHEL6_64_lic.sh
./RTI_Connext_Messaging-4.5f-RHEL6_64_lic.sh - Read & Accept License Agreement
- Choose Install Directory
- "n" to Skip Getting Started Guide
- "n" to Skip starting Launcher
- Replace the file "rti_license.dat" in the RTI Install directory with your License File
- CD to Installation Directory
- Execute:
source rti_set_bash_4.5f
- Note: You can copy the export and alias statements out of this file into your environment settings so that they are set at startup
- Run the Launcher to Confirm Installation, Execute:
rtilauncher
OR
<INSTALL_DIR>/RTI_Launcher_4.5f/scripts/rtilauncher
Java Examples
The Java Examples are Located in "<INSTALL_DIR>/ndss4.5/example/JAVA/". You must complete the following steps in Eclipse before you will be able to run the Java Examples:
- Add the JAR files in "<INSTALL_DIR>/ndds.4.5f/class", specifically the nddsjava.jar file to your classpath.
- For more complex project you may require additional JAR files in this directory as well.
- Add the Environment Variable:
- LD_LIBRARY_PATH=<INSTALL_DIR>/ndds.4.5f/lib/x64Linux2.6gcc4.4.5
- Place a copy of the "rti_license.dat" file in the directory "<INSTALL_DIR>/ndds.4.5f/"
Signing/Encrypting Email with a CAC in Outlook 2010
Introduction
If you have a Digital Certificate, you can use it to digitally sign and encrypt emails. When you are using Microsoft Outlook as your email client, you will need to first configure Outlook to use your certificate. This document assumes that you have Outlook 2010 configured as your email client (Note: the certificate installation process differs slightly for Outlook 2003 and Outlook 2007).
- First you must have your Digital Certificate installed on your computer and have your computer CAC Enabled.
- Once you have your Digital Certificate installed, you should open Outlook.
- Once Outlook is opened, click on the orange File tab at the top left.
- On the left hand set of options, click on the Options button.
- A window entitled Outlook Options will appear. On the left-hand pane, click on the Trust Center button at the bottom of the list.
- The right side of the window will change. Click on the Trust Center Settings button on the bottom right hand side.
- A window named, Trust Center will appear. On the left hand side you shall see selectable options. Click on the E-mail Security option on the left hand pane.
- Upon clicking on the E-mail Security button, in the right hand pane, you will see a drop down field next to Default Setting:. Click on the Settings button next to this field.
- A new window will appear named Change Security Settings. In this window, you will see two Choose buttons under the Certificates and Algorithms section.
Signing Certificate
First you will choose the signing certificate. This is the certificate that you will use to digitally sign emails that you send out. The email in the certificate that you have installed on your computer must match the email address that you are using to sign. This certificate must also be valid.
- In the Certificates and Algorithms section of the Change Security Settings window, you should see the heading, Signing Certificate:. Click on the Choose button directly to the right of this heading.
- A new window will appear named, Select Certificate. In this window, you will choose the Digital Certificate you would like to sign with from a list of certificates installed on this computer. Note: If you are unsure which certificate to choose, you can always highlight a certificate and click on the View Certificate button to see the details for that certificate.
- When you have selected the Digital Certificate, click on the OK button at the bottom.
When you return to the Change Security Settings window, you should see that the certificate you have chosen has appeared greyed out in the Signing Certificate field.
Encryption Certificate
Next you will choose the encryption certificate. This is the certificate that other users will use when attempting to encrypt an email to you. In typical use, you will use the same Digital Certificate for both signing and encryption (the exception is for Qualified certificates which are only able to digitally sign emails). You can still decrypt an email with an expired certificate.
- In the Certificates and Algorithms section of the Change Security Settings window, you should see the heading, Encryption Certificate:. Click on the Choose button directly right of this heading.
- A new window will appear named Select Certificate. In this window, you will choose the Digital Certificate you would use for encryption of emails from a list of certificates installed on this computer. Note: If you are unsure which certificate to choose, you can always highlight a certificate and click on the View Certificate button to see the details for that certificate.
- When you have selected the certificate, click on the OK button at the bottom.
When you return to the Change Security Settings window, you should see that the certificate you have chosen has appeared greyed out in the Encryption Certificate field. When you have finished selecting your Digital Certificate, you can press the OK button at the bottom.
Additional Configuration (Optional)
Back in the Trust Center window, you can further configure Outlook 2010 with the way that it uses your Digital Certificate. Under the Encrypted e-mail heading, you should see 4 check boxes. These check boxes add various features when using Outlook 2010 and Digital Certificates.
- Encrypt contents and attachments for outgoing messages - This will try to encrypt every outgoing message. In order to encrypt to a user, you must have a copy of their public key/certificate in your address book.
- Add digital signature to outgoing messages - This will digitally sign every outgoing message using your Digital Certificate.
- Send clear text signed message when sending signed message - This sends a digitally signed message to a recipient who does not use S/MIME.
- Request S/MIME receipt for all S/MIME signed messages - This will request confirmation that a message was received unaltered. Outlook will automatically do this.
Digitally Signing and Encrypting E-Mail
Once you have followed this guide and selected a certificate for both the Signing Certificate: and the Encryption Certificate: headings, you will be able to use them while composing an e-mail.
- When you have an email open, click on the Options tab at the top of the email.
- In the Permission section, directly underneath the top tabs, you should see two buttons named Sign and Encrypt.
- Click on the Sign button to depress it to digitally sign this email.
- Click on the Encrypt button to depress it to encrypt this email. Note: You must have the recipients public key in order to encrypt an email.
- Click on both buttons, Sign and Encrypt to digitally sign and encrypt the message.
- After you have finished typing the new email, or the reply/forward, press the Send button.
Running SCAP Content on RHEL 5
Below are steps to run SCAP content on RHEL 5
Requirements
- Java 6 JDK must be installed
Install OVAL Interpreter
- Install OVALDI Libs RPM
- Install OVALDI RPM
Install XCCDFExec
- Download and Extract Built 47
Configuration
- Set xccdf_interpreter.properties
Note: These may be different depending on your installation, "yum -ql ovaldi" will locate your installed files.- Set: oval.dir=/usr/sbin
-
Set: oval.bin=ovaldi
Run
- From your XCCDF Directory, Run:
- java -jar xccdfexec_v1.2.jar <XCCDF_FILE.xml> -C <CPE_DICT.xml> -c <OVAL_FILE.xml>
Reading Environment Vaiables in Java
The following code snippet will read environment variables in Java.
With a String argument, getenv returns the value of the specified variable. If the variable is not defined, getenv returns null.
Resize VirtualBox Hard Drive
Use the following command to resize a VirtualBox Hard Drive in Linux. It may or may not work in Windows as well.
VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB
40960 MB = 40 GB
Source: http://www.webupd8.org/2011/02/how-to-easily-resize-virtualbox-40-hard.html
Note: Running this command on a RHEL5.8 x86_64 VM caused errors when logging in as users other than root. I believe the partitions inside the VM will need to be resized as well, after running this command.